data/@mihcm/ui·v0.21.0·stable
Badge
Small status / labelling pill. Six variants spanning informational, semantic, and outline.
Live preview
Adjust the controls on the right; the preview and code update in real time.
Badge
example.tsxtsx
import { Badge } from '@mihcm/ui/Badge';
export function Example() {
return (
<Badge
variant="default"
>
Badge
</Badge>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add BadgeCopies the source into
components/ds/Badge.tsx. You own the file. Use --out to override the directory or --force to overwrite.