Przejdź do głównej zawartości

Interface: CartCountProps

Properties

className?

optional className?: string

Class name for styling.


count

count: number

Number of items in the cart.


formatter?

optional formatter?: (count) => string

Custom formatter (e.g. localised pluralisation). Default: stringifies the count.

Parameters

count

number

Returns

string


hideWhenEmpty?

optional hideWhenEmpty?: boolean

Hide entirely when count is zero (default false).


label?

optional label?: string

Optional label rendered after the count (e.g. "items"). Use a localised string from the consumer's i18n layer rather than hardcoding.