状态提示,单纯的 count 值。
1() => (2 <Group>3 <Badge>3</Badge>4 <Badge color="warning">12</Badge>5 </Group>6)7
徽标内容可以是文本,也可以是数字,通过设置 color 属性可以设置组件的颜色。
1() => (2 <Group>3 <Badge color="warning">KubeSphere</Badge>4 <Badge color="error">#12</Badge>5 <Badge color="secondary">KubeSphere</Badge>6 <Badge color="success">KubeSphere</Badge>7 <Badge color="blue">9</Badge>8 </Group>9)10
可以设置 shadow 给徽标增加阴影效果。
1() => (2 <Group>3 <Badge color="warning" shadow>4 KubeSphere5 </Badge>6 <Badge color="error" shadow>7 #128 </Badge>9 <Badge color="secondary" shadow>10 KubeSphere11 </Badge>12 <Badge color="success" shadow>13 KubeSphere14 </Badge>15 <Badge color="blue" shadow>16 917 </Badge>18 </Group>19)20