Dismissible Alerts
- from @shadcn-ui-blocks
Alerts with a close button so users can clear a notice once read. Use for cookie banners, promotions, and warnings that should not stay forever.
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 @shadcn-ui-blocks/components-alerts-dismissible-alertsRegistry dependencies0
The CLI adds no other registry items with this one.