Skip to content

Buttons

Open “Buttons” in a new tab ↗

.btn plus one variant class:

ClassUse
.btn-primaryprimary action (filled brand)
.btn-secondarysecondary filled
.btn-outlinebordered, transparent fill
.btn-ghosttransparent, no border until hover
.btn-dangerdestructive action
.btn-linklooks like a link
  • .btn-sm · .btn-icon (icon-only)
  • States: .is-loading (with <span class="spin sm">), .is-success, .is-disabled
  • Groups: .btn-group (joined) · .segmented (single-select) · .toggle-group (multi, JS toggles .on)

All padding/size flows through the density tokens, so buttons shrink in compact mode.