DEVELOPMENT PREVIEWIn development

alert API

alerts/alert.tsx

Alert

Props

PropTypeDefaultDescription
variant
AlertVariantInput | undefinedAlertVariant.InfoStatus color.
header
any—Bold heading rendered above the body.
icon
any—Replace the variant icon; pass `null` to hide it.
actions
any—Action buttons/links rendered under the content.

AlertVariant

alerts/banner.tsx

Banner

Props

PropTypeDefaultDescription
children*
React.ReactNode—
variant
BannerVariantInput | undefinedBannerVariant.InfoColor scheme.
icon
any—Replace the variant icon; pass `null` to hide it.
dismissible
boolean | undefinedfalseShow a dismiss (×) button that hides the banner.
fixed
boolean | undefinedfalsePin to the viewport (`position: fixed`) at `position`.
sticky
boolean | undefinedfalseStick to the scroll edge (`position: sticky`) at `position`.
position
"top" | "bottom" | undefinedtopEdge used by `fixed`/`sticky` placement.
animated
boolean | undefinedfalseSubtle attention animation on the icon.
action
{ label: string; onClick: () => void; } | undefined—Call-to-action button rendered after the content.
Show native HTML props

Native HTML Props

PropTypeDefaultDescription
onDismiss
(() => void) | undefined—Called after the dismiss button hides the banner.

BannerVariant