Button
Links and actions. Its surface comes from the controls tokens, so one theme setting makes every button flat, beveled or round.
Props
| Prop | Type | Default |
|---|---|---|
variant?default (outlined), primary (filled), portal (glowing accent, for the loft), danger (destructive) | 'default' | 'primary' | 'portal' | 'danger' | 'default' |
size?md for page CTAs, sm for dense tool UIs, icon for a single glyph | 'md' | 'sm' | 'icon' | 'md' |
block?fill the container's width | boolean | – |
icon?a pixelarticons name, drawn before the label | string | – |
Plus every native <button> / <a> attribute.
Tokens it reads
Usage
<Button variant="primary" icon="mail" href="#contact">email me</Button>
<Button size="sm" block data-save>save</Button>