primitives/@mihcm/ui·v0.21.0·stable
Select
Custom dropdown for single-value selection. Composable: Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Select, SelectTrigger, SelectContent, SelectItem } from '@mihcm/ui/Select';
export function Example() {
return (
<Select
variant="default"
size="md"
placeholder="Pick a fruit"
></Select>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add SelectCopies the source into
components/ds/Select.tsx. You own the file. Use --out to override the directory or --force to overwrite.