Learn how to add custom components, like a composer or a sidebar, to personalize your chat UI
C1Chat
component and plugging in your own components where needed. Follow these steps to get started:
Destructure the C1Chat component
C1Chat
component in your page.tsx
file. You will need to replace that component with its constituent components.First, import ThemeProvider
from @thesysai/genui-sdk
, ChatProvider
from @crayonai/react-core
, and the following components from @crayonai/react-ui/Shell
. Then, use them in your JSX code as follows:threadManager
and threadListManager
, refer to this guide.Build your own custom component
Plug in your custom component
Composer
component with your own CustomComposer
component: