primitives/@mihcm/ui·v0.21.0·stable
Select
Custom dropdown for single-value selection. Composable: Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator.
Props
The full prop API for Select. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
value | string | — | Selected value. Required. | 0.5.0 |
onValueChange | (value: string) => void | — | Called when selection changes. Required. | 0.5.0 |
open | boolean | — | Controlled open state. | 0.5.0 |
onOpenChange | (open: boolean) => void | — | Called when dropdown opens/closes. | 0.5.0 |
variant | 'default' | 'destructive' | 'default' | Visual variant on SelectTrigger. | 0.5.0 |
size | 'sm' | 'md' | 'lg' | 'md' | Trigger height. On SelectTrigger. | 0.5.0 |
disabled | boolean | false | Disables the trigger. | 0.5.0 |
Import
import { Select, SelectTrigger, SelectContent, SelectItem } from '@mihcm/ui/Select';