Chat

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

Chat

API

Parameter Default Description
null 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.
md The size of the chat component. Can be 'sm', 'md', or 'lg'.
[] Data for the chat input component. Check the chat__input component for more details.

Subcomponents

Child components for chat, including purpose and supported Blade parameters.

Chat Input

Blade directive: @chat__input()

Subcomponent for the chat component.

Parameter Default Type Purpose
null NULL -
null NULL -
[] array Additional CSS classes added to the wrapping element.
[] array Additional HTML attributes added to the wrapping element.

Chat Message

Blade directive: @chat__message()

Subcomponent for the chat component.

Parameter Default Type Purpose
false boolean -
[] array Additional CSS classes added to the wrapping element.
[] array Additional HTML attributes added to the wrapping element.

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