SelectUnstyled API
Documentação da API para o componente React SelectUnstyled . Aprenda sobre as propriedades disponíveis e a API CSS.
Importação
import SelectUnstyled from '@mui/base/SelectUnstyled';
// ou
import { SelectUnstyled } from '@mui/base';The foundation for building custom-styled select components.
Propriedades
Propriedades do componente nativo também estão disponíveis.
| Nome | Tipo | Padrão | Descrição |
|---|---|---|---|
| autoFocus | bool | false | |
| components | { Listbox?: elementType, Popper?: elementType, Root?: elementType } | {} | |
| componentsProps | { listbox?: object, popper?: object, root?: object } | {} | |
| defaultListboxOpen | bool | false | |
| defaultValue | any | ||
| disabled | bool | false | |
| listboxOpen | bool | undefined | |
| onChange | func | ||
| onListboxOpenChange | func | ||
| renderValue | func | ||
| value | any | The selected value. Set to null to deselect all options. |
O
ref é encaminhado para o elemento raiz.