Tag🏷
It is usually used to show some attributes, and occasionally used as some alternative attributes
Code demonstration
import { UTag } from 'ungeui';
Different themes🚀
Different sizes🔥
Closed❌
Capsule label💊
Disable🚫
Custom label color🌈
Props
Parameter | description | type | default value |
---|---|---|---|
type | tag theme | 'default' | 'success' | 'warning' | 'info' | 'danger' | 'default' |
size | tag size | 'small' | 'medium' | 'large' | 'medium' |
color | tag background color | string | undefined |
round | capsule round | boolean | false |
closable | closable | boolean | false |
disabled | disabled | boolean | false |
on-Close | callback | (e:MouseEvent) => void | undefined |