ChatLayout
The chat shell. It sets the theme and lays out the thread and the side.
ICU nurses in Texas
ReadyPeople
Example
<ChatLayout theme="light">
<ChatHeader title="ICU nurses in Texas" running={false} dataSource="person" />
<ChatBody>
<ChatThread>
<UserMessage message={request} />
<Composer disabled={false} running={false} onSubmit={send} />
</ChatThread>
<ChatSide>
<CandidateCard candidate={candidate} />
</ChatSide>
</ChatBody>
</ChatLayout>
Props
| Prop | Type | |
|---|---|---|
theme | 'light' | 'dark' | 'system' | Default system. |
tokens | ThemeTokens | Passed through to the theme. |
classes | ChatLayoutClasses | root, body, thread, side. |
children | ReactNode | Usually ChatBody. |
className | string | Added on the root element. |
style | CSSProperties | Added on the root element. |
Render it inside SourcingTheme so the Nova tokens apply.