Skip to content

Badge ​

te-badge is a small inline label.

Variants ​

normalprimarysecondarysuccessinfowarningdangerpinkpurple
vue
<te-badge type="normal" text="normal" />
<te-badge type="primary" text="primary" />
<te-badge type="secondary" text="secondary" />
<te-badge type="success" text="success" />
<te-badge type="info" text="info" />
<te-badge type="warning" text="warning" />
<te-badge type="danger" text="danger" />
<te-badge type="pink" text="pink" />
<te-badge type="purple" text="purple" />

Solid and outlined ​

solidoutlined
vue
<te-badge type="success" solid text="solid" />
<te-badge type="success" outlined text="outlined" />

Sizes and shape ​

smalllargerounded
vue
<te-badge size="small" text="small" />
<te-badge size="large" text="large" />
<te-badge rounded text="rounded" />

Props ​

PropTypeDefaultDescription
textstring''Label. Ignored when the default slot is used.
type'normal' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'pink' | 'purple' | 'light' | 'dark''normal'Colour variant.
size'small' | 'large''small'Padding.
solidbooleanfalseFilled background.
outlinedbooleanfalseBorder instead of a background.
roundedbooleanfalsePill shape.

Slots ​

SlotPropsDescription
default—Badge content.