Interface: CartCountProps
Properties
className?
optionalclassName?:string
Class name for styling.
count
count:
number
Number of items in the cart.
formatter?
optionalformatter?: (count) =>string
Custom formatter (e.g. localised pluralisation). Default: stringifies the count.
Parameters
count
number
Returns
string
hideWhenEmpty?
optionalhideWhenEmpty?:boolean
Hide entirely when count is zero (default false).
label?
optionallabel?:string
Optional label rendered after the count (e.g. "items"). Use a localised string from the consumer's i18n layer rather than hardcoding.