--- title: Banner description: A prominent message displayed at the top of the page or section. --- ## Preview ## Installation CLI Manual ```bash npx @olyx/cli@latest add banner ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Banner, BannerContent, BannerIcon } from "@/components/ui/banner" ``` ```tsx New features available! ``` ## API Reference ### Banner Root banner container. | Prop | Type | Default | | --------- | ------------------------------------------------------------------ | ----------- | | `variant` | `"filled" \| "light" \| "lighter" \| "stroke"` | `"filled"` | | `status` | `"error" \| "warning" \| "success" \| "info" \| "feature"` | `"feature"` | ### BannerContent Text content container for the banner message. ### BannerIcon Icon container with proper sizing and color styling. ### BannerClose Close button for dismissible banners. Uses `Button` component internally with appropriate styling. ## Examples ### Error ### Warning ### Success ### Info ### Feature ### With Close Button