Skip to content

Button

Any action. Six variants, each with disabled, loading, success and error states. Pass selected (true or false) to make it a toggle.

Sourcecomponents/button.tsx

Usage

When to use

Use when

Any action: submit, open, confirm, toggle (selected)

Don’t use when

Navigating to another page; use Link