Banner

feedback

Top-of-page announcement banner with dismiss action and optional CTA.

Preview

No preview available

Check the code examples below.

Installation

npm install @launchapp/design-system
Import
import { Banner } from "@launchapp/design-system";

Examples

Info banner

<Banner variant="info" onDismiss={() => console.log("dismissed")}>  🎉 New features available — <a href="/changelog">See what's new</a></Banner>

Props

PropTypeDefaultDescription
children*
React.ReactNodeBanner message content.
variant
"info" | "success" | "warning" | "error""info"Color scheme.
dismissible
booleantrueShow dismiss button.
onDismiss
() => voidCalled when dismissed.