Triage design system v0.13.1-experiment
Home / Components / Buttons & controls

Buttons & controls

Four button intents, two sizes, icon buttons, segmented pairs, copy affordances and the submit guard.

Variants

hover darkens the border to black; .primary is ink; .danger tints red on hover only
<button class="btn primary">Save</button>
<button class="btn">Default</button>
<button class="btn danger">Delete</button>
<button class="btn ghost">Quiet</button>
<button class="btn small">Compact</button>
<button class="btn" disabled>Disabled</button>
<button class="iconbtn" aria-label="…">…svg…</button>

Geometry & states

PropertyValue
Height34px · .small 27px · coarse pointers force 44px
Padding0 13px · .small 0 9px
Border1px solid var(--border-default); hover border-color #000
Default weight500 · .primary 600
Disabledopacity .45; cursor not-allowed
Icon size14px inside .btn · 16px inside .iconbtn
Press (touch)transform scale(.97), opacity .85 (100ms)

Segmented control & copy

Press ⌘K Short label: Needs reply needed
.copy is wired globally by js/shell.js — never call navigator.clipboard from a page template
<span class="seg"><button class="btn small">Left</button><button class="btn small">Right</button></span>
<button class="btn small copy" data-copy="copied text">copy</button>
<kbd class="kbd">⌘K</kbd>
<span class="sub">Needs reply<span class="mhide"> needed</span></span>

In-flight guard

click Save: the button freezes on the real guard so a double-submit cannot land
the real guard disables and relabels the submit button until navigation; reset here is a showcase affordance
<form onsubmit="return guardApply(this)">
  <button class="btn primary" type="submit">Save rule</button>
</form>
Triage Design System v0.13.1-experiment — the central, app-agnostic UI design authority. Source of truth: /tokens/tokens.json. Showcase chrome only: site/.