primitives/@mihcm/ui·v0.21.0·stable
Input
Single-line text entry. Default + destructive variants, three sizes, optional leading/trailing icons. WCAG 2.1 AA out of the box (aria-invalid, aria-required, focus ring).
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Input } from '@mihcm/ui/Input';
export function Example() {
return (
<Input
variant="default"
size="md"
type="text"
>
Email address
</Input>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add InputCopies the source into
components/ds/Input.tsx. You own the file. Use --out to override the directory or --force to overwrite.