Banner
Announcement, cookie, newsletter and promo banners. Figma: Type (single action, dual action, slim, text field, countdown) × Theme (default, brand) × Size (floating, full-width), responsive for Desktop and Mobile, optional Icon.
{ Banner } from "@pepulux/ui"Theme: Default — floating
Theme: Brand — floating
Size: Full-width
Edge-to-edge strip with a bottom border, used at the top of a page.
Icon and dismiss
icon accepts true (default glyph), a node, or false. onClose shows the dismiss button.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "single-action" | "dual-action" | "slim" | "text-field" | "countdown" | "single-action" | Figma Type |
| theme | "default" | "brand" | "default" | Figma Theme |
| size | "floating" | "full-width" | "floating" | Rounded card with shadow, or edge-to-edge strip |
| title / description* | ReactNode | — | Banner copy |
| icon | boolean | ReactNode | true | Figma Icon — leading icon box (not shown on slim / countdown) |
| primaryAction / secondaryAction | { label; onClick?; href? } | — | Buttons (secondary only for dual-action) |
| placeholder / onSubmit | string / (email) => void | — | text-field type |
| countdown | { hours; minutes; seconds } | — | countdown type |
| onClose | () => void | — | Shows the dismiss (x) button |