ComponentProduct
Banner
Page-level information or error notice with optional actions.
npx context-ds add bannerUsage
Use it for
Plan, credit and account notices above a page's content: info for news, alert for something that needs action.
Avoid
- More than one banner on a page
- Banners for form errors
Example
examples/banner.tsx
Source
components/ui/banner.tsx
Reference: src/components/dashboard-ui/banner.tsx.