Banner

A full-width notification strip for system-level messages — billing alerts, downtime notices, feature announcements. Sits inline by default, or pinned to the top/bottom of the viewport.

Variants

Six semantic variants: default, info, success, warning, destructive, and neutral.

Position

Pin a banner to the top or bottom of the viewport with position="top" or "bottom". It becomes position: fixed and stretches edge-to-edge.

Dismissible & Action

Installation

Props

Extends all HTMLDivElement props.

PropTypeDefaultDescription
variant
"default" | "info" | "success" | "warning" | "destructive" | "neutral""info"Visual style.
position
"top" | "bottom" | "inline""inline"Fixed at the top/bottom of the viewport, or rendered inline.
icon
React.ReactNodeLeading icon shown before the message.
action
React.ReactNodeTrailing action element (typically a button or link).
dismissible
booleanfalseShow a close button on the right.
onDismiss
() => voidCalled when the dismiss button is clicked.