Displays a clickable button element.
This component is based on the button
element and supports common margin props m
, mx
, my
, ml
, mr
, mt
, mb
. View source
The state
prop is deprecated, as the types of state it represents may not be mutually exclusive. Use disabled
or loading
instead.
Use the loading
prop to indicate that the button is in a loading state. When loading
is true the button is disabled by default.
When button changes to a loading state, screen readers announce “Loading, please wait.”
Loading and disabled buttons are focusable for accessibility reasons, but can’t be clicked and don’t submit forms.