useOption API
API reference docs for the useOption hook. Learn about the input parameters and other APIs of this exported module.
Demos
For examples and details on the usage of this React hook, visit the demo pages:
Import
import useOption from '@mui/base/useOption';
Parameters
Name | Type | Default | Description |
---|
disabled* | boolean | | |
value* | Value | | |
optionRef | React.Ref<HTMLElement> | | |
Return value
Name | Type | Default | Description |
---|
getRootProps | <Other extends EventHandlers>(otherHandlers?: Other) => UseOptionRootSlotProps<Other> | | |
highlighted | boolean | | |
index | number | | |
selected | boolean | | |