Version: Next
Modes
Modes display selected items.
DEFAULTSIMPLEBADGE
| Type | Default |
|---|---|
| string | SIMPLE |
note
Single item pickers won't be affected by the mode property.
Change the default mode#
You can change the default mode of the package globally.
Badge Mode Props#
showBadgeDot#
Shows dots in the badges.
| Type | Default |
|---|---|
| bool | true |
renderBadgeItem#
Renders the selected items.
note
You need to move it to an independent component otherwise the items will be re-rendered.
- See: RenderBadgeItem.js
| Type |
|---|
| function |
Styling#
badgeStyle#
badgeTextStyle#
badgeDotStyle#
badgeSeparatorStyle#
badgeColors#
Gives background colors to badges based on the value.
| Type |
|---|
| object, string |
badgeDotColors#
Gives background colors to badge dots based on the value.
| Type |
|---|
| object, string |