Variants
flx/banner-02FreeBlock
Info, success, warning, and error tones stacked.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/banner-02.jsonSource
1import { AlertTriangle, CheckCircle2, Info, XCircle } from 'lucide-react'23export function Banner02() {4 return (5 <div className="flex w-full flex-col gap-2.5">6 <div className="flex items-start gap-3 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-3 text-sm text-blue-700 dark:text-blue-300">7 <Info className="mt-0.5 size-5 shrink-0 text-blue-600 dark:text-blue-400" />8 <div className="flex flex-col gap-0.5">9 <p className="font-medium">New feature</p>10 <p className="opacity-80">Saved views are now available on every board.</p>11 </div>12 </div>1314 <div className="flex items-start gap-3 rounded-lg border border-emerald-500/20 bg-emerald-500/10 px-4 py-3 text-sm text-emerald-700 dark:text-emerald-300">15 <CheckCircle2 className="mt-0.5 size-5 shrink-0 text-emerald-600 dark:text-emerald-400" />16 <div className="flex flex-col gap-0.5">17 <p className="font-medium">Payment received</p>18 <p className="opacity-80">19 Your invoice has been paid and a receipt is on its way.20 </p>21 </div>22 </div>2324 <div className="flex items-start gap-3 rounded-lg border border-amber-500/20 bg-amber-500/10 px-4 py-3 text-sm text-amber-700 dark:text-amber-300">25 <AlertTriangle className="mt-0.5 size-5 shrink-0 text-amber-600 dark:text-amber-400" />26 <div className="flex flex-col gap-0.5">27 <p className="font-medium">Storage almost full</p>28 <p className="opacity-80">29 You have used 92% of your plan. Upgrade to avoid interruptions.30 </p>31 </div>32 </div>3334 <div className="flex items-start gap-3 rounded-lg border border-red-500/20 bg-red-500/10 px-4 py-3 text-sm text-red-700 dark:text-red-300">35 <XCircle className="mt-0.5 size-5 shrink-0 text-red-600 dark:text-red-400" />36 <div className="flex flex-col gap-0.5">37 <p className="font-medium">Sync failed</p>38 <p className="opacity-80">39 We could not reach the server. Your changes are saved locally.40 </p>41 </div>42 </div>43 </div>44 )45}
Files it writes
More from flx
All 450 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Basicaccordion-01 | flx | Blocks | Free | no deps | |
| Multipleaccordion-02 | flx | Blocks | Free | no deps | |
| With iconsaccordion-03 | flx | Blocks | Free | no deps | |
| FAQaccordion-04 | flx | Blocks | Free | no deps | |
| Separated cardsaccordion-05 | flx | Blocks | Free | no deps | |
| Plus / minus iconaccordion-06 | flx | Blocks | Free | 1 dep | |
| Left chevronaccordion-07 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps |
