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
| Property | Value |
|---|---|
| Height | 34px · .small 27px · coarse pointers force 44px |
| Padding | 0 13px · .small 0 9px |
| Border | 1px solid var(--border-default); hover border-color #000 |
| Default weight | 500 · .primary 600 |
| Disabled | opacity .45; cursor not-allowed |
| Icon size | 14px 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
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/.