Counter label

Counter label is a button with a numbered label accompanied by text.

  • @primer/react@35.32.1
  • Alpha
  • Not reviewed for accessibility

Import

import {CounterLabel} from '@primer/react'

Examples

View in Storybook

Props

CounterLabel

NameDefaultDescription
scheme
'primary' | 'secondary'

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