Announcement bar
- from @knowns-ui
Dismissible announcement bar above the header: a link or CTA, an optional countdown, tone variants, dismissal remembered per id in localStorage, and a smooth height collapse with no layout jump.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @knowns-ui/announcement-barRegistry dependencies1
Packages0
No npm packages are installed with it.
