Banner
For news, warnings or anything people must see. Can carry a button and be dismissed.
- Component
- Light and dark
- Updated 5 months ago
Paste this into your agent.
Add a full-width message at the top of the page to <the page you want it on>. Install it with: npx shadcn add @ollie/banner Handle onDismiss yourself; don't fetch inside the component. Keep the ocean theme tokens.
Other takes
Free shipping on all orders this week.Ends Sunday
Scheduled maintenance is planned for tonight at 11pm.
Introducing v2.0— faster, simpler, better.
Your subscription expires in 3 days.Renew
Your trial has started. Set up your workspace to get going.Get started
Cookies help us improve your experience on this site.
New features are now available in your account.
More components
- Empty StateWhat to show when there's nothing to show.
- Status badgeA coloured label for a status, from your own list.
- Wizard dialogA form in steps, checked as you go.
- Form dialogA form in a pop-up, with save and cancel.
- Confirm dialog"Are you sure?" done properly, with a red version for deletes.
- Job trayA tray of background jobs and how far along they are.
- Job progressOne job's steps and progress, in detail.
- CommentsA comment thread with a box to reply.
- Offline bannerTells people when they've lost connection, and when it's back.