Badge3
mynaui/badge3FreeComponent
Badges are small components that can be used to display a status or a count.
Install it
npx shadcn@latest add https://mynaui.com/r/badge3.jsonSource
1import { Badge } from "@/ui/badge";2import { X } from "@mynaui/icons-react";34export default function WithClose() {5 return (6 <>7 <Badge>8 Badge9 <button className="group -mr-0.5 ml-1 shrink-0 rounded-full">10 <X className="size-3 stroke-current" />11 </button>12 </Badge>13 <Badge variant="secondary">14 Secondary15 <button className="group -mr-0.5 ml-1 shrink-0 rounded-full">16 <X className="size-3 stroke-current" />17 </button>18 </Badge>19 <Badge variant="outline">20 Outline21 <button className="group -mr-0.5 ml-1 shrink-0 rounded-full">22 <X className="size-3 stroke-current" />23 </button>24 </Badge>25 <Badge variant="destructive">26 Destructive27 <button className="group -mr-0.5 ml-1 shrink-0 rounded-full">28 <X className="size-3 stroke-current" />29 </button>30 </Badge>31 </>32 );33}
What it pulls in
npm packages
Other registry items
Files it writes
More from mynaui
All 346 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordion1accordion1 | mynaui | Components | Free | no deps · 2 files | |
| Accordion2accordion2 | mynaui | Components | Free | no deps · 2 files | |
| Accordion3accordion3 | mynaui | Components | Free | no deps · 2 files | |
| Accordion4accordion4 | mynaui | Components | Free | 1 dep · 2 files | |
| Accordion5accordion5 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog1alert-dialog1 | mynaui | Components | Free | no deps · 2 files | |
| Alert dialog2alert-dialog2 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog3alert-dialog3 | mynaui | Components | Free | 1 dep · 2 files |
