Counter
Counter(
props):Element
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props |
{ className?: string; classNames?: CounterClassNames; icon: IconName | LucideIcon; label: string; size?: "base" | "sm" | "lg" | "xl"; value: string | number; } |
- |
props.className? |
string |
An override that shows in the diff, on the row. |
props.classNames? |
CounterClassNames |
An override per part, over className for the row. |
props.icon |
IconName | LucideIcon |
The icon that says what the number is. |
props.label |
string |
The accessible name, such as “Coins”. |
props.size? |
"base" | "sm" | "lg" | "xl" |
The size, the icon’s and the number’s together. |
props.value |
string | number |
The number it shows, or a text such as "3 / 8". Each change bumps it: the new value springs in from a larger size. |
Returns
Section titled “Returns”Element