Badge
A small label for statuses, counts and categories.
Built on Radix UI$ pnpm dlx shadcn@latest add https://multidash-app.vercel.app/r/badge.jsonDefaultSecondaryOutlineSoftInfoSuccessWarningDestructiveHighlight
Installation
Add Badge with the shadcn CLI, or copy the source by hand. In this repo there's nothing to install — import it from @multidash/ui.
$ pnpm dlx shadcn@latest add https://multidash-app.vercel.app/r/badge.jsonAdds the component, the components it builds on, its npm packages and the theme tokens it uses. Using Multidash often? Add the registry to components.json once:
components.json
{
"registries": {
"@multidash": "https://multidash-app.vercel.app/r/{name}.json"
}
}Then add components by name:
$ pnpm dlx shadcn@latest add @multidash/badgeUsage
import {
Badge,
badgeVariants,
} from "@multidash/ui/components/badge"Examples
With icon
Pair status colors with an icon so meaning never relies on color alone.
Paid Pending Failed