Contents
Example
Use props.skin
to choose from one of six predefined styles for the
Button
component, each serving its own semantic purpose.
By default, the Button
component renders a <button>
element.
However, if props.href
is set, an <a>
will be rendered instead.
Optionally, set props.type
to ButtonType.SUBMIT
or ButtonType.RESET
to
render a submit / reset form button, respectively.
Set props.skin
to one of the "outline" options when you are in need of a
Button
, but not the ones that come with a hefty background color.
Sizes
Set props.size
if you fancy larger or smaller Button
s.
Set props.isBlock
to render Button
s that span the
full width of a parent element.
Active state
Set props.isActive
to make a Button
appear active.
Disabled state
Set props.isDisabled
to disable a Button
.