UI Library

Toast

Default

action: —

Props

PropTypeDefaultNotes
messagestringToast body text.
closeLabelstringAccessible name for the dismiss button.
position'top-right' | 'top-center' | 'bottom-right' | 'bottom-center''bottom-right'Viewport edge the toast docks to.
size'sm' | 'md''sm'Text scale.
type'success' | 'info' | 'warning' | 'error''info'Accent treatment.
actionLabelstringPaired action button; renders only with onAction.
onAction() => voidAction button handler.
onClose() => voidDismiss handler (button and Escape).