API and Development
Counter formats value with locale-aware grouping (no decimal digits) and centers it in a fully rounded pill. CounterSize selects Small or Regular text; CounterColor selects Default, Subtle, or Error styling. Pass className to place the counter, for example to pin it over the control it counts for.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | The numeric value to display |
|
| — | Class applied to the counter root. Use it to place the counter, for example to pin it over an icon as an unread badge. |
|
|
| The color of the counter |
|
|
| The size of the counter |
Interactive examples and edge cases for this component are in Storybook.
Solid error fill, for unread counts that need to pull the eye.