Maple · Feedback

Banner

A full-width message pinned to the top of a page for announcements, trials and system notices. One line, one action, dismissible.

View in Storybook →

Types

Maple 1.0 is here — 42 components in Light and Dark.Learn more
Your trial ends in 5 days.Upgrade
<Banner type="accent" action={{ label: "Learn more", href: "/news" }} onClose={hide}>Maple 1.0 is here.</Banner>

Props

PropTypeDefaultDescription
type"accent" | "neutral" | "warning""accent"Style.
childrenReactNode—Message.
action{ label, href?, onClick? }—One action.
onClose() => void—Dismiss button.