Mark
An app or source mark: a small rounded tile with a gradient in one of twelve tones and a white glyph, at a preset size or any size.
Available in
Angular: available Vue: available React: available React Native: available
Usage
<div class="demo-stack">
<div style="display: flex; flex-wrap: wrap; gap: var(--space-3)">
@for (tone of tones; track tone) {
<sone-mark [tone]="tone" icon="sparkles" [label]="tone" />
}
</div>
<div style="display: flex; align-items: center; gap: var(--space-3)">
<sone-mark size="sm" icon="code" tone="iris" />
<sone-mark icon="code" tone="iris" />
<sone-mark size="lg" icon="code" tone="iris" />
<sone-mark [size]="56" icon="code" tone="iris" label="Code" />
</div>
</div>Import
import {
SoneMarkComponent,
} from "@surface-one/angular/mark";API reference
SoneMarkComponentComponent
`<sone-mark>` — an app or source mark: a small rounded tile (28% of its size round) with a gradient `tone` and a white glyph. Decorative by default (`aria-hidden`); give it a `label` when nothing next to it names what it stands for, and it becomes an image.
| Name | Type | Default |
|---|---|---|
icon | ShellIcon | "layout-grid" |
tone | MarkTone | "brand" |
size`sm` (20), `md` (28), `lg` (40) or a size in px. | MarkSize | "md" |
labelThe accessible name; leave it out when text beside the mark already names it. | string | null | null |