Badge
Install
Usage
Basic Usage
Max
Custom Color
Standaline
API
Props
| Attribute |
Description |
Type |
Default |
| content |
Badge content |
number | string |
- |
| color |
Background color |
string |
#ee0a24 |
| dot |
Whether to show dot |
boolean |
false |
| max |
Max value,show {max}+ when exceed,only works when content is number |
number | string |
- |
Slots
| Name |
Description |
| default |
Default slot |
Less Variables
How to use: Custom Theme.
| Name |
Default Value |
Description |
| @badge-size |
16px |
- |
| @badge-color |
@white |
- |
| @badge-padding |
0 3px |
- |
| @badge-font-size |
@font-size-sm |
- |
| @badge-font-weight |
@font-weight-bold |
- |
| @badge-border-width |
@border-width-base |
- |
| @badge-background-color |
@red |
- |
| @badge-dot-color |
@red |
- |
| @badge-dot-size |
8px |
- |
| @badge-font-family |
-apple-system-font, Helvetica Neue, Arial, sans-serif |
- |