Skip to main content
Version: Next

Select API

import { Select } from '@editora/ui-react';

Props​

PropTypeDescription
checkPlacement'start' | 'end'
childrenReact.ReactNode
density'default' | 'compact' | 'comfortable'
descriptionstring
disabledboolean
elevation'low' | 'none' | 'high'
errorstring
headlessboolean
invalidboolean
labelstring
loadingboolean
namestring
onChange(value: string) => void
onInput(value: string) => void
onValueChange(value: string) => void
optionBorderboolean
placeholderstring
radius'none' | 'large' | 'full' | number | string
requiredboolean
shape'rounded' | 'square' | 'pill'
showCheckboolean
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
tone'default' | 'brand' | 'success' | 'warning' | 'danger'
validation'none' | 'success' | 'warning' | 'error'
valuestring
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