Select API
import { Select } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
checkPlacement | 'start' | 'end' | |
children | React.ReactNode | |
density | 'default' | 'compact' | 'comfortable' | |
description | string | |
disabled | boolean | |
elevation | 'low' | 'none' | 'high' | |
error | string | |
headless | boolean | |
invalid | boolean | |
label | string | |
loading | boolean | |
name | string | |
onChange | (value: string) => void | |
onInput | (value: string) => void | |
onValueChange | (value: string) => void | |
optionBorder | boolean | |
placeholder | string | |
radius | 'none' | 'large' | 'full' | number | string | |
required | boolean | |
shape | 'rounded' | 'square' | 'pill' | |
showCheck | boolean | |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
validation | 'none' | 'success' | 'warning' | 'error' | |
value | string | |
variant | | 'classic' | 'surface' | 'soft' | 'filled' | 'outline' | 'line' | 'minimal' | 'ghost' | 'solid' | 'glass' | 'contrast' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.Option props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.OptGroup props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.Label props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.Description props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.Error props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.Leading props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Select.Trailing props
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-select>
Select renders the ui-select custom element from @editora/ui-core, which can also be used without React.
Attributes: aria-describedby, aria-description, aria-label, check-placement, close-on-scroll, data-invalid, data-valid, density, description, disabled, elevation, error, headless, invalid, label, loading, name, option-border, placeholder, radius, required, shape, show-check, size, tabindex, tone, validation, value, variant