Mark

アプリやソースのマーク:12 色のトーンから選ぶグラデーションと白いグリフを持つ小さな角丸タイルで、プリセットまたは任意のサイズで表示します。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 対応

使い方

インポート

ts
import {
  SoneMarkComponent,
} from "@surface-one/angular/mark";

API リファレンス

SoneMarkComponentコンポーネント

`<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.

セレクター
sone-mark
入力
名前型 デフォルト
iconShellIcon"layout-grid"
toneMarkTone"brand"
size

`sm` (20), `md` (28), `lg` (40) or a size in px.

MarkSize"md"
label

The accessible name; leave it out when text beside the mark already names it.

string | nullnull