Chat

The Chat component provides a reusable pattern for chat in the interface.

Chat

API

Parameter Default Description
The title of the chat.
false If the chat should be persistent, meaning it will be visible on all pages and not just the page it is rendered on. Uses local storage to keep track of the chat state, also requires a unique and persistent ID to be set on the chat component.
CSS value of the maximum height of the chat area (message area)
[] Data for the chat input component. Check the chat__input component for more details.

CSS API

Variable Default Type Values Description
var(--base) range - Main unit that drives radius and spacing scales.
var(--border-radius) range - Border Radius
var(--color--surface) color - Surface
var(--color--surface-alt) color - Manual companion token for subtle surface backgrounds.
var(--color--surface-contrast) color - Used for text and icons on surface backgrounds with less contrast.
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--color--surface-contrast-muted) color - Derived muted contrast for text and icons on surface backgrounds.
var(--border-width) range - Size
var(--color--secondary) color - Secondary
var(--color--secondary-contrast) color - Secondary Contrast
var(--color--secondary-border) color - Manual companion token for secondary border and hover states.
var(--corner-shape) select square, round, squircle, circular, bevel, scoop Corner Shape
2 range - Scales the border radius locally without changing the global border radius scale.

Similar components