Button
Buttons let users take actions and make choices with a single tap.
useButton API
Import
import useButton from '@mui/base/useButton';
// or
import { useButton } from '@mui/base';
Parameters
Return value
Resolver for the root slot's props.
Type:
<TOther extends EventHandlers = {}>(otherHandlers?: TOther) => UseButtonRootSlotProps<TOther>