Icon
Inline-SVG-Glyphen in currentColor — keine Icon-Schrift, keine zusätzliche Anfrage.
Verfügbar für
Angular: verfügbar Vue: verfügbar React: verfügbar React Native: verfügbar
Verwendung
<div class="demo-stack">
<div class="demo-row" style="align-items: flex-end">
<sone-icon icon="sparkles" size="xs" />
<sone-icon icon="sparkles" size="sm" />
<sone-icon icon="sparkles" size="base" />
<sone-icon icon="sparkles" size="lg" />
<sone-icon icon="sparkles" size="xl" />
</div>
<div class="demo-row" style="align-items: center">
<!-- Icons draw in currentColor; give a label only when the icon carries the meaning alone -->
<span style="color: var(--text-secondary)"><sone-icon icon="lock" label="Locked" /></span>
<span style="color: var(--danger)"><sone-icon icon="alert-circle" label="Error" /></span>
</div>
<div class="demo-row" style="align-items: center">
<button soneBtn variant="outline" type="button"><sone-icon icon="plus" inline="start" /> New note</button>
<button soneBtn variant="outline" type="button">Next <sone-icon icon="chevron-right" inline="end" /></button>
<button soneBtn variant="ghost" size="icon" type="button" aria-label="Search"><sone-icon icon="search" /></button>
</div>
</div>Import
import {
SoneIconComponent,
} from "@surface-one/angular/icon";API-Referenz
SoneIconComponentKomponente
| Name | Typ | Standard |
|---|---|---|
iconerforderlich | ShellIcon | — |
size | IconSize | null | null |
label | string | null | null |
inline | "start" | "end" | null | null |