TairoSelect and TairoSelectItem are enhanced versions of Shuriken UI's select components, offering additional features and improved styling.
| Model | Type |
|---|---|
v-model | AcceptableValue | AcceptableValue[]The controlled value of the Select. Can be bind as `v-model`. |
| Prop | Type |
|---|---|
autocompletedefault: - | stringNative html input `autocomplete` attribute. |
bindingsdefault: - | { trigger?: SelectTriggerProps; portal?: SelectPortalProps; content?: SelectContentProps; viewport?: SelectViewportProps; }Optional bindings to pass to the inner components. |
bydefault: - | string | ((a: AcceptableValue, b: AcceptableValue) => boolean)Use this to compare objects by a particular field, or pass your own comparison function for complete control over how objects are compared. |
classesdefault: - | { text?: string | string[]; icon?: string | string[]; content?: string | string[]; buttonUp?: string | string[]; buttonDown?: string | string[]; viewport?: string | ... 1 more ...; }Optional classes to pass to the inner components. |
default-opendefault: - | booleanThe open state of the select when it is initially rendered. Use when you do not need to control its open state. |
default-valuedefault: - | AcceptableValue | AcceptableValue[]The value of the select when initially rendered. Use when you do not need to control the state of the Select |
dirdefault: - | DirectionThe reading direction of the combobox when applicable. If omitted, inherits globally from `ConfigProvider` or assumes LTR (left-to-right) reading mode. |
disableddefault: - | booleanWhen `true`, prevents the user from interacting with Select |
icondefault: - | string |
iddefault: - | stringThe form input identifier. |
itemsdefault: - | BaseSelectItemProps<AcceptableValue>[]The defaults items to display for the select input. |
multipledefault: - | booleanWhether multiple options can be selected or not. |
namedefault: - | stringThe name of the field. Submitted with its owning form as part of a name/value pair. |
opendefault: - | booleanThe controlled open state of the Select. Can be bind as `v-model:open`. |
placeholderdefault: - | stringThe placeholder to display for the select input. |
presetdefault: - | "aligned" | "popper"Bindings presets |
requireddefault: - | booleanWhen `true`, indicates that the user must set the value before the owning form can be submitted. |
roundeddefault: "md" | "md" | "none" | "sm" | "lg" | "full"The radius of the select input. |
sizedefault: - | "md" | "sm" | "lg" | "xl"The size of the select input. |
variantdefault: "default" | "default" | "muted"The variant of the select input. |
| Event | Emitted Value Type |
|---|---|
update:open | [value: boolean] |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
valuedefault: - | AcceptableValueThe value given as data when submitted with a `name`. |
asdefault: - | AsTag | ComponentThe element or component this component should render as. Can be overwritten by `asChild`. |
as-childdefault: - | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details. |
disableddefault: - | booleanWhen `true`, prevents the user from interacting with the item. |
icondefault: - | string |
mediadefault: - | string |
namedefault: - | string |
textdefault: - | string |
text-valuedefault: - | stringOptional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the `SelectItemText` part. Use this when the content is complex, or you have non-textual content inside. |