Toast
Timed live notifications with pause, dismiss and explicit action intent.
Ordinary demos on this page explicitly use Shadcn Rhea, with matching examples. This does not change public compatibility defaults or imply complete browser, native-host or visual acceptance. Neutral Surface/Text atoms retain their own public semantics; the consumer composition supplies the family presentation theme.
Timed live notifications with pause, dismiss and explicit action intent.
Root defaults open for 5000ms. duration=0 remains open; hover and focus in Toast Action/Close pause the remaining duration. Controlled open emits one timeout request until the owner changes state. Close, focused Escape and Action request dismissal; action side effects belong to the app. Viewport provides the F8 focus shortcut. No global queue or external notification transport is implied.
Parts: Root, Viewport, Title, Description, Action, Close.
Draft source; native/GPUI, compiler, packed consumer, screenshots and full independent acceptance remain pending.
This entry is workspace source. It is not a public proto-ui add catalog id.
| Prop | Type | Default |
|---|---|---|
defaultOpen | boolean | true |
duration | number | 5000 |
paused | boolean | false |
politeness | 'polite' 'assertive' | polite |
a11yLabel | string | Notifications |
hotkey | string | F8 |
disabled | boolean | false |
defaultOpen, duration, paused, and politeness belong to Root. duration 0 stays open. a11yLabel and hotkey belong to Viewport. disabled belongs to Action and Close.