Rendering the component
UI Customizations
Styling UI according to your application’s theme.
Wrap the <C1Component />
component with a ThemeProvider
component to customize the look of your UI.
Customizing the theme
To customize the look of your C1 UI, you can wrap the C1 components with a ThemeProvider
component. The ThemeProvider
component accepts the following props:
The theme mode for the chat component. This can be either ‘light’ or ‘dark’.
The main theme configuration object. If not provided, the default theme will be used. Partial theme can be provided, in which case, only the provided properties will be overridden, while the rest of the options will be taken from the default theme.
The dark theme configuration object used when in dark mode. If not provided,
the theme
object will be used.