A11y: A label that describes the button
Icon Button
Icon button renders an icon within in a button.
Props#
aria-labelrequired
aria-labelrequiredDescription
Type
stringicon
iconDescription
The icon to be used in the button.
Type
ReactElement<any, string | JSXElementConstructor<any>>isActive
isActiveDescription
If true, the button will be styled in its active state.
Type
booleanisDisabled
isDisabledDescription
If true, the button will be disabled.
Type
booleanisLoading
isLoadingDescription
If true, the button will show a spinner.
Type
booleanisRound
isRoundDescription
If true, the button will be perfectly round. Else, it'll be slightly round
Type
booleanspinner
spinnerDescription
Replace the spinner component when isLoading is set to true
Type
ReactElement<any, string | JSXElementConstructor<any>>