| | |
| | | shape | String | circle | options:circle/square/bubble/ribbon | N |
| | | show-zero | Boolean | false | \- | N |
| | | size | String | medium | options:medium/large | N |
| | | |
| | | |
| | | ### CSS Variables |
| | | The component provides the following CSS variables, which can be used to customize styles. |
| | | Name | Default Value | Description |
| | | -- | -- | -- |
| | | --td-badge-basic-height | 32rpx | - |
| | | --td-badge-basic-padding | 8rpx | - |
| | | --td-badge-basic-width | 32rpx | - |
| | | --td-badge-bg-color | @error-color | - |
| | | --td-badge-border-radius | 4rpx | - |
| | | --td-badge-bubble-border-radius | 20rpx 20rpx 20rpx 1px | - |
| | | --td-badge-dot-size | 16rpx | - |
| | | --td-badge-font-size | @font-size-xs | - |
| | | --td-badge-font-weight | 600 | - |
| | | --td-badge-large-font-size | @font-size-s | - |
| | | --td-badge-large-height | 40rpx | - |
| | | --td-badge-large-padding | 10rpx | - |
| | | --td-badge-text-color | @font-white-1 | - |