useTab API
Demos
For examples and details on the usage of this React hook, visit the demo pages:
Import
import { useTab } from '@mui/base/TabUnstyled';
Parameters
Name | Type | Default | Description |
---|---|---|---|
ref* | React.Ref<any> | ||
disabled | boolean | ||
onChange | (event: React.SyntheticEvent, value: number | string) => void | Callback invoked when new value is being set. | |
onClick | React.MouseEventHandler | ||
onFocus | React.FocusEventHandler | ||
value | number | string | You can provide your own value. Otherwise, we fall back to the child position index. |
Return value
Name | Type | Default | Description |
---|