Component packs › Herald › Inline Banner
Hung on two pins: dismiss it and the right pin lets go, it swings down on the left like a pendulum, then falls out as the space closes.
Inline Banner is a banner from Herald, a component pack with 6 notification components: Notifications with weight: toasts that land and get thrown, and a bell that really rings. Price: $2 for the whole pack.
Built with: pendulum dismiss, drops onto its pins, space collapses.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | ||
text | string | ||
action | string | Action button text (optional). | |
onAction | () => void | ||
onDismiss | () => void |
readonly shown: booleanshow(): voiddismiss(): voiddestroy(): voidimport InlineBanner from './InlineBanner';
<InlineBanner />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Notifications and toasts.