Displays a ghost button used with an icon.
This component is based on the button
element and supports common margin props m
, mx
, my
, ml
, mr
, mt
, mb
. View source
A button can represent different types of state that may or may not be mutually exclusive. Most of these can be represented by props inherited from the button
element, such as disabled
and readOnly
.
Use the loading
prop to indicate that the button is in a loading state. When loading
is true, the button is disabled whether or not the disabled
prop is set.
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.