Back to Components
Components
Alert Banner
Full-width dismissible banner for announcements with icon and close button.
Planned maintenance
We will deploy updates at 02:00 UTC.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/alert-banner.tsx
Installation
Using shadcn CLI
npx shadcn add alert-banner --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge