Icon-Knopf

Reiner Icon-Button (Utility-Button): Varianten secondary/ghost/gefahr, Pflicht-aria-label, emittet activate

UI Elements v1.0.0 Formulare WebsiteAppDesktop ui.icon-button

Nutzt: ui.icon

Beispiele

Ghost (Standard)
Secondary
Gefahr
Klein

Eigenschaften

PropTypDefaultBuilder-Label
name *stringIcon-Name
label *stringZweck (aria-label, Pflicht)
variantstring: secondary | ghost | danger"ghost"Variante
sizestring: sm | md"md"Größe

* Pflicht-Prop

Genutzte Design-Tokens

border.hairlinecolor.action.on-secondarycolor.action.secondarycolor.action.secondary-bordercolor.action.secondary-hovercolor.status.dangercolor.status.danger-surfacecolor.surface.sunkencolor.text.defaultcolor.text.mutedduration.fasteasing.standardelevation.controlfocus.ring-colorfocus.ring-offsetfocus.ring-widthradius.controlsize.10size.8