Mark

应用或来源标记:一个小圆角方块,采用十二种色调之一的渐变和白色图形,可用预设尺寸或任意尺寸。

可用框架
  • 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