CounterLabel

Adds a count to navigational elements and buttons.

Page navigation navigation

React examples

Default

 (12)

Scheme variants

The primary variant is visually heavier than the default.

 (12) (12)

Props

CounterLabel

NameDefaultDescription
variant
'primary' | 'secondary'

Pass in 'primary' for a darker background and inverse text, or 'secondary' for a lighter background and primary text. Omitting the variant prop renders the default counter scheme

scheme Deprecated
'primary' | 'secondary'

Use variant instead.

className
string

Class name(s) for custom styling.