Skip to content

<button>

The <button> element is a native interactive control that is keyboard-accessible and focusable by default, requiring no additional ARIA.

On how to turn non-button elements into buttons, see [role="button"].

Basic Usage

live preview
editable html
<button>
  Button
</button>

Variants

Intent Variants

To convey intent and importance, buttons can be styled with different variants. The default variant is .primary, which is used for the most important actions on a page, but there are also:

live preview
See code

Modifiers

.ghost creates transparent background buttons with colored text and borders, useful for secondary actions where you want minimal visual weight.

live preview
See code

.subtle creates buttons with a more muted appearance, often used for less prominent actions.

live preview
See code