MiHCM
primitives/@mihcm/ui·v0.21.0·stable

Checkbox

Controlled checkbox with three states — true, false, "indeterminate". aria-checked="mixed" for indeterminate.

Live preview

Adjust the controls on the right; the preview and code update in real time.

example.tsxtsx
import { Checkbox } from '@mihcm/ui/Checkbox';

export function Example() {
  return (
    <Checkbox
  label="Accept terms"
  size="md"
    ></Checkbox>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add Checkbox
Copies the source into components/ds/Checkbox.tsx. You own the file. Use --out to override the directory or --force to overwrite.