Tag

状态 / 分类标签。支持 colorsizesize 可读 componentConfig.Tag

文档站 Demo 跟随 Rspress 明暗主题(亮色用 admin)。

基础用法

<Tag color="primary" size="md">启用</Tag>

实时演示

defaultprimarysuccesswarningdanger
smmdlg

API

TagProps

属性 类型 默认值 说明
children ReactNode 文案
color "default" | "primary" | "success" | "warning" | "danger" "default" 色系
size "sm" | "md" | "lg" "md" 可读 config
className string 追加类名