primitives/@yashiel/mihcm-ui·v0.1.0·stable
Button
Primary action affordance. Six variants, four sizes. 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 '@yashiel/mihcm-ui/Button';
export function Example() {
return (
<Button
variant="default"
size="md"
>
Click me
</Button>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @yashiel/mihcm-cli add ButtonCopies the source into
components/ui/button. You own the file.soonCLI is currently a stub; ships in v0.2.