| select |
component |
ts |
ui |
2.0.0 |
impure |
Select(props: SelectProps): JSX.Element |
Select dropdown con búsqueda, grupos y accesibilidad. Wrapper sobre Mantine Select con API declarativa via prop data. |
| select |
| form |
| dropdown |
| component |
| ui |
| interactive |
| mantine |
|
|
|
|
false |
|
|
Componente Select que renderiza dropdown searchable con soporte para opciones planas, agrupadas y custom render |
false |
|
|
frontend/functions/ui/select.tsx |
| name |
type |
required |
description |
| data |
string[] | { value: string; label: string; disabled?: boolean }[] | { group: string; items: ... }[] |
true |
Opciones del select — strings, objetos {value,label}, o grupos |
|
| name |
type |
required |
description |
| value |
string | null |
false |
Valor seleccionado (controlled) |
|
| name |
type |
required |
description |
| onChange |
(value: string | null) => void |
false |
Callback al cambiar selección |
|
| name |
type |
required |
description |
| defaultValue |
string | null |
false |
Valor inicial (uncontrolled) |
|
| name |
type |
required |
description |
| placeholder |
string |
false |
Texto cuando no hay selección |
|
| name |
type |
required |
description |
| label |
string |
false |
Label del campo |
|
| name |
type |
required |
description |
| searchable |
boolean |
false |
Permite buscar entre opciones |
|
| name |
type |
required |
description |
| clearable |
boolean |
false |
Permite limpiar la selección |
|
| name |
type |
required |
description |
| disabled |
boolean |
false |
Deshabilitar el select |
|
| name |
type |
required |
description |
| size |
'xs' | 'sm' | 'md' | 'lg' | 'xl' |
false |
Tamaño del componente |
|
|
|
true |
react |
|