Skip to content
PixiKit

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
NameTypeDefaultDescription
toneSignalTone"info"The mood: it sets the colour and the shape of the icon.
titlestringNoneThe first line, in medium weight.
childrenReactNodeNoneThe body text.
itemsstring[]NoneA short list under the text, such as several errors.
actionsSignalAction[]NoneButtons under the text.
link{ label: string; href: string }NoneA 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.
iconbooleantrueShows the icon.
dismissiblebooleanfalseShows a close button.
onDismiss() => voidNoneCalled after the alert has collapsed.
openbooleanNoneWhether it is showing, when you hold the state.
defaultOpenbooleantrueWhether it shows at first, when the alert holds the state.
rememberKeystringNoneA storage key; a dismissal is kept under it and the alert stays hidden next time.
autoHidenumber0Milliseconds before it closes itself; 0 keeps it. A line runs out, and stops under the pointer or focus.
classNamestringNone

More feedback blocks in Pro

View all

Related