data/@mihcm/ui·v0.21.0·stable
StatusBadge
Small inline icon + label chip used to mark something as "Module enabled" / "No permission" / "Active". Five built-in tones plus an optional leading icon.
Live preview
Adjust the controls on the right; the preview and code update in real time.
Module enabled
example.tsxtsx
import { StatusBadge } from '@mihcm/ui/StatusBadge';
export function Example() {
return (
<StatusBadge
tone="success"
showIcon
>
Module enabled
</StatusBadge>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add StatusBadgeCopies the source into
components/ds/StatusBadge.tsx. You own the file. Use --out to override the directory or --force to overwrite.