Button

Use Button for actions in forms, dialogs, and more with support for multiple sizes, states, and more. Buttons align perfectly with inputs since they use same spacing variables.

Component NameDevelopment Status
ButtonDONE

Examples

You can find all examples for components developed in this module here.

Basic Example

Very basic Button component examples.

Block Buttons

Buttons can be used as blocks. Simply set block option.

Sizes

There are 3 sizes you can use with buttons. sm, md and lg.

Variants

There are several contextual variants you can apply to buttons.

States

You can manage disable and loading states too.

Links

If you want to use button styles with anchor elements, you can use ButtonLink component.

Icon Buttons

You can use icons with buttons. Don't remember why i did this?

Properties

This component composes styled-system

Property NameTypeDescription
variant - 'primary'enumContextual color option.
size - 'md'enumChanges the size and spacing of buttons.
loading - falseboolUse this when there's a loading operation and you don't want button to be clicked.
block - falseboolWhether button will be a block element.
outlinebool