primitives/@mihcm/ui·v0.21.0·stable
RadioGroup
Mutually exclusive option selection. Fieldset with RadioGroupItem children sharing state via React Context.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { RadioGroup, RadioGroupItem } from '@mihcm/ui/RadioGroup';
export function Example() {
return (
<RadioGroup
orientation="vertical"
size="md"
></RadioGroup>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add RadioGroupCopies the source into
components/ds/RadioGroup.tsx. You own the file. Use --out to override the directory or --force to overwrite.