Component packs › Herald › Inline Banner

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.

Inline Banner props

PropTypeDefaultDescription
titlestring
textstring
actionstringAction button text (optional).
onAction() => void
onDismiss() => void

Methods on the ref

Use it in React

import InlineBanner from './InlineBanner';

<InlineBanner />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Herald

Good for: Notifications and toasts.