Button

An accessible action button.

Usage

Variants

Use variant property to define button variant. Four variants are available: "primary", "success", "danger" and "neutral". The default variant is "primary".

SyntaxError: Unexpected token (1:24)
1 : /* @jsx mdx */ const { x.div } = require('@xstyled/styled-components');
                            ^

Disabled

Set disabled attribute to display button as disabled.

It is common to have to display a button that actually behaves like a link. The as prop replaces the intrinsic component of the button.

Edit this page on GitHub