Import
Basic Usage
Props
The variant to use. Determines the button’s visual style.
color
'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning'
default:"'primary'"
The color of the component. Supports both default and custom theme colors.
The size of the component.
small is equivalent to the dense button styling.If
true, the component is disabled.If
true, no elevation is used.If
true, the keyboard focus ripple is disabled.If
true, the button will take up the full width of its container.The URL to link to when the button is clicked. If defined, an
a element will be used as the root node.If
true, the loading indicator is visible and the button is disabled.Element placed before the children if the button is in loading state. The node should contain an element with
role="progressbar" with an accessible name. By default, it renders a CircularProgress that is labeled by the button itself.The loading indicator can be positioned on the start, end, or the center of the button.
Element placed before the children.
Element placed after the children.
The system prop that allows defining system overrides as well as additional CSS styles.
The content of the component.
API Reference
- Button API
- Inherits ButtonBase API