UI Library

Toast

action: —
Prop Type Default Value Notes
closeLabelstring—
Accessible name for the dismiss button.
messagestring—
Toast body text.
position'top-right' | 'top-center' | 'bottom-right' | 'bottom-center''bottom-right'
Viewport edge the toast docks to.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Text scale; every metric is a fixed ratio of the size.
type'success' | 'info' | 'warning' | 'error''info'
Accent treatment.
variant'soft' | 'solid' | 'outline''soft'
Presentation: tinted surface, filled with the type color, or a dark surface with a type-colored frame.
action{ label: string; onClick: () => void }?——Action button; renders only when set.
onClose() => void——Dismiss handler (button and Escape).