Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/pages/api-reference/liveblocks-react-ui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,30 @@ function Chat() {
}
```

##### Customize CSS variables and classes [#AiChat-variables-and-classes]

You can customize the default styles of the chat by modifying CSS variables and
classes prefixed with `lb`. Here are some examples.

```css
/* Lowers spacing and shrinks font size */
.lb-ai-chat {
--lb-spacing: 0.6em;
font-size: 14px;
}

/* Removes composer shadow and adds border */
.lb-ai-chat-composer {
box-shadow: 0;
border: 1px solid #f0f0f0;
}

/* Removes padding below the composer */
.lb-ai-chat-footer {
padding-bottom: 0;
}
```

##### Customize how Markdown is rendered [#AiChat-markdown]

You can customize how Markdown is rendered in messages by passing components to
Expand Down
Loading