@wix/design-system
Version:
@wix/design-system
28 lines (24 loc) • 1.16 kB
Markdown
### children
- type: ReactNode
- description: Any element to be rendered inside
### dataHook
- type: string
- description: Applied as data-hook HTML attribute that can be used in the tests
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
### locale
- type: "en" | "en-US" | "en-GB" | "en-AU" | "en-CA" | "ar" | "bg" | "ca" | "zh" | "zh-TW" | "zh-HK" | "zh-MO" | "cs" | "da" | "nl" | "fi" | "fr" | "fr-CA" | "fr-CH" | "fr-BE" | "de" | "de-CH" | ... 31 more ... | "vi"
- description: Sets locale and formats the number according to it
### skin
- type: CounterBadgeSkin
- description: The component's look and feel
### size
- type: CounterBadgeSize
- description: The component's size. Can be small or medium
### showShadow
- type: boolean
- description: Makes the card have a box-shadow style
### truncate
- type: boolean
- description: Control whether values greater than 99 should be truncated