Button
Naisc agus gníomhartha. Tagann a dhromchla ó na tokens rialuithe, mar sin déanann socrú amháin téama gach cnaipe cothrom, beibhealta nó cruinn.
Props
| Prop | Cineál | Réamhshocrú |
|---|---|---|
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 | – |
Móide gach aitreabúid dhúchasach <button> / <a>.
Tokens a léann sé
Úsáid
<Button variant="primary" icon="mail" href="#contact">email me</Button>
<Button size="sm" block data-save>save</Button>