Counter

Provide number of items contained in page, list or category
and display number of hidden elements due to lack of space.

Code


                                                        
                                                        
                                                            <PyxisCounter
                                                            label="1"
                                                        />
                                                        
                                                            

Example of a primary Counter component

Props

The Counter component supports the following props:

Name

Type

Default

Required

label

string

undefined

true

color

'primary'|'secondary'|'warning'|'danger'|'success'|'premium'|'earth'|'neptune'|'jupiter'|'cloudy'|'system'|'brand'|'reverse' |’neutral'

'primary'

true

ariaLabel

string

undefined

false

dataTestid

string

undefined

false

isInactive

boolean

false

false

isDisabled

boolean

false

false