Feedback
Alert
A notice that stays on the page until it is dealt with: partial data, a connection that needs attention, rows that could not be read. A Toast leaves on its own and a ChromeMessage takes the page. The status is in an icon tile and the corner glow, never a colored edge, and each has its own shape. An error is announced at once; the rest waits its turn.
Preview
Syncing 2 accounts
New entries show up here as they arrive.
Connected
Your bank syncs every morning at 6.
The import stopped
Row 14 has no date. Fix it in the file and import again.
Installation
// Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "info" | "success" | "warning" | "error" | "info" | error is role=alert and interrupts; the rest are role=status |
| title / children | ReactNode | - | What happened, then the detail and the next step |
| action | ReactNode | - | An ArrowLink or a Button |
| onDismiss / dismissLabel | () => void / string | - | Only for a notice that can be put away |