跳转到内容

ButtonUnstyled API

API documentation for the React ButtonUnstyled component. Learn about the available props, and the CSS API.

Import

import ButtonUnstyled from '@mui/core/ButtonUnstyled';
// 或
import { ButtonUnstyled } from '@mui/core';
You can learn about the difference by reading this guide on minimizing bundle size.

属性

Props of the 原生(Native) component are also available.

名称类型默认值描述
actionfunc
| { current?: { focusVisible: func } }
componentelementType'button'
The component used for the Root slot. Either a string to use a HTML element or a component. This is equivalent to components.Root. If both are provided, the component is used.
components{ Root?: elementType }{}
disabledboolfalse

ref 则会被传递到根元素中。

Demos