Signal Alert
An inline message with five tones, each with its own icon shape that draws itself. It can carry a list, actions and a link, collapses when dismissed, remembers a dismissal, and can close itself on a timer.
pixikit.com/docs/app-ui/feedback/signal-alert
Customize
Tone
Variant
Icon
Dismissible
Default open
Auto hide0ms
Props
15| Name | Type | Default | Description |
|---|---|---|---|
tone | SignalTone | "info" | The mood: it sets the colour and the shape of the icon. |
title | string | None | The first line, in medium weight. |
children | ReactNode | None | The body text. |
items | string[] | None | A short list under the text, such as several errors. |
actions | SignalAction[] | None | Buttons under the text. |
link | { label: string; href: string } | None | A link at the far end on wide containers, under the text on narrow ones. |
variant | "soft" | "outline" | "accent" | "soft" | `soft` tints the box, `outline` draws a coloured edge, `accent` adds a thick bar on the start edge. |
icon | boolean | true | Shows the icon. |
dismissible | boolean | false | Shows a close button. |
onDismiss | () => void | None | Called after the alert has collapsed. |
open | boolean | None | Whether it is showing, when you hold the state. |
defaultOpen | boolean | true | Whether it shows at first, when the alert holds the state. |
rememberKey | string | None | A storage key; a dismissal is kept under it and the alert stays hidden next time. |
autoHide | number | 0 | Milliseconds before it closes itself; 0 keeps it. A line runs out, and stops under the pointer or focus. |
className | string | None |