Share via

Get Started with UI Components

For full instructions on how to build this code sample from scratch, look at Quickstart: Get Started with UI Components

Prerequisites

Run the code

  1. Run npm i on the directory of the project to install dependencies
  2. Run npm run start

Open your browser to http://localhost:3000. You should see the following: Components End State

Feel free to style the components to your desired size and layout inside of your application. Check out the stateful client quickstart to learn how to connect the components to the communications data plane.

Enable Rich Text Editor

By default, this Quickstart is using the plain text editor for the SendBox component and the MessageThread component's edit function. We also provide a Rich Text Editor for rich text formatting, table inserting etc. To try it out: - Go to the src folder and find the ChatComponents.tsx file. - Change the value for richTextEditorEnabled to true.

Open your browser to http://localhost:3000. You should see the following with the Rich Text Editor enabled: Components with Rich Text Editor