Name Type Default Description
childrenĀ * node The content of the button.
classes object Override or extend the styles applied to the component. See CSS API below for more details.
color enum: 'default' |
 'inherit' |
 'primary' |
'default' The color of the component. It supports those theme colors that make sense for this component.
component union: string |
The component used for the root node. Either a string to use a DOM element or a component. The default value is a button.
disabled bool false If true, the button will be disabled.
disableFocusRipple bool false If true, the keyboard focus ripple will be disabled. disableRipple must also be true.
disableRipple bool If true, the ripple effect will be disabled.
fullWidth bool false If true, the button will take up the full width of its container.
href string The URL to link to when the button is clicked. If defined, an a element will be used as the root node.
mini bool false If true, and variant is 'fab', will use mini floating action button styling.
size enum: 'small' |
 'medium' |
'medium' The size of the button. small is equivalent to the dense button styling.
variant enum: 'flat' |
 'outlined' |
 'raised' |
'flat' The type of button.

Any other properties supplied will be spread to the root element.


You can override all the class names injected by Material-UI thanks to the classes property. This property accepts the following keys:

  • root
  • label
  • flatPrimary
  • flatSecondary
  • outlined
  • colorInherit
  • raised
  • raisedPrimary
  • raisedSecondary
  • focusVisible
  • disabled
  • fab
  • mini
  • sizeSmall
  • sizeLarge
  • fullWidth

Have a look at overriding with classes section and the implementation of the component for more detail.

If using the overrides key of the theme as documented here, you need to use the following style sheet name: MuiButton.


The properties of the ButtonBase component are also available.