Button

Variants

Set variants using variant prop. All colors defined in your theme (or not) can be used.

Outline

Add outline prop to use the outline variant of buttons.

Scales

Set scales using scale prop like "xs", "sm", "lg" or "xl". The default scale is "base".

Disabled

Disable using disabled prop.

Accessibility

Button uses Reakit Button under the hood, it means it follows WAI-ARIA Button Pattern.

Read more about accessibility on Reakit.

API

Button

PropertyTypeRequiredDefaultDescription
childrennodefalse-
disabledbooleanfalse-Same as the HTML attribute.
focusablebooleanfalse-When an element is `disabled`, it may still be `focusable`. It works similarly to `readOnly` on form elements. In this case, only `aria-disabled` will be set.
scale
enum
false-Control the size of the component.
variant
union
falseprimaryControl the color variant of the component.
Show xstyled properties