Skip to content
On this page

Tag

用于标记和选择。

用法

type

使用 type 属性定义 Tag 的类型。

tag
tag
tag

state

您可以定义不同的状态。

tag
tag
tag
tag

shape

预定义标记的形状。

rounded
pilled

closable

使用 closable 属性定义可移除标记。

tag
tag
tag

indicator

使用 indicator 显示标记。

tag
tag
tag

属性

属性名可选值默认值描述
typesolid | outline | softsolidSet custom type attribute.
colorblue | teal | red | yellow | gray | deepGraytealSet tag color.
shaperounded | pilledroundedSet tag shape.
closablebooleanfalseUse the closable attribute to define a removable tag.
indicatorbooleanfalseUse an indicator appearance to show indication.

MIT Licensed