primitives/@mihcm/ui·v0.21.0·stable
Button
Primary action affordance. Seven variants, six sizes, icon slots, rounded or hard-edge shapes, and tokenized Tailwind class overrides. Universal across web and native.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Button } from '@mihcm/ui/Button';
export function Example() {
return (
<Button
variant="default"
size="md"
shape="rounded"
>
Click me
</Button>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add ButtonCopies the source into
components/ds/Button.tsx. You own the file. Use --out to override the directory or --force to overwrite.