Skip to content
+

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';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

disabled

focusableWhenDisabled

href

onFocusVisible

rootRef

tabIndex

to

type

Return value

active

focusVisible

getRootProps

rootRef

setFocusVisible