data/@mihcm/ui·v0.21.0·stable
StatCard
Centered icon tile + big number + caption. The "Quick stats" row primitive — six tones to match the metric meaning.
Live preview
Adjust the controls on the right; the preview and code update in real time.
6
Active Roles
example.tsxtsx
import { StatCard } from '@mihcm/ui/StatCard';
export function Example() {
return (
<StatCard
label="Active Roles"
tone="primary"
showIcon
>
6
</StatCard>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add StatCardCopies the source into
components/ds/StatCard.tsx. You own the file. Use --out to override the directory or --force to overwrite.