Skip to content
+

Select

The Select components let you create lists of options for users to choose from.

useOption API

Import

import { useOption } from '@mui/base/useOption';
// or
import { useOption } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

disabledRequired

labelRequired

valueRequired

id

rootRef

Return value

getRootProps

highlighted

index

rootRef

selected


useSelect API

Import

import { useSelect } from '@mui/base/useSelect';
// or
import { useSelect } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

areOptionsEqual

buttonRef

defaultOpen

defaultValue

disabled

getOptionAsString

getSerializedValue

listboxId

listboxRef

multiple

name

onChange

onHighlightChange

onOpenChange

open

options

required

value

Return value

buttonActive

buttonFocusVisible

buttonRef

contextValue

disabled

dispatch

getButtonProps

getHiddenInputProps

getListboxProps

getOptionMetadata

highlightedOption

listboxRef

open

options

value