Banner
Full-width banner notification component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring controlled visibility, dismissible actions, and customizable themes.
Powered by
Installation
npx shadcn@latest add https://www.shadcn.io/registry/banner.json
npx shadcn@latest add https://www.shadcn.io/registry/banner.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/banner.json
bunx shadcn@latest add https://www.shadcn.io/registry/banner.json
Features
- Controlled visibility - Show/hide state management with close handlers using React state patterns
- Composable API - Icon, Title, Action, and Close components using TypeScript composition
- Inset variant - Rounded corner styling option with container spacing using Tailwind CSS
- Primary color themes - Adapts to color token system with customizable appearance for Next.js projects
- Dismissible actions - Built-in close functionality with optional callbacks using JavaScript event handling
- Icon integration - Lucide icons support with flexible positioning using shadcn/ui theming
- Open source - Free banner component with full-width layout support
Examples
Inset
Different primary colors
Use Cases
- System notifications - Maintenance alerts and service status announcements
- Promotional messages - Marketing campaigns and special offer displays
- Warning alerts - Important user actions and security notifications
- Feature announcements - New functionality and product update communications
Implementation
Built with composable components and controlled state. Supports both controlled and uncontrolled modes. Close handler with optional callbacks. Color themes adapt to CSS custom properties.
Announcement
Compound announcement badge component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring customizable themes, hover effects, and flexible content layout.
Cursor
Interactive cursor indicator component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring real-time positioning, customizable appearance, and accessibility features.