State

Use state for rendering the status of an item.

Work in progressWe are currently transferring the React documentation for StateLabel from a different site to this page. To view the original documentation with code examples, please visit the Primer React documentation for StateLabel.
  • @primer/react@35.25.1
  • Alpha
  • Not reviewed for accessibility

Import

import {StateLabel} from '@primer/react'

Examples

View in Storybook

Props

StateLabel

NameDefaultDescription
variant
'normal''small' | 'normal'
statusRequired
'issueOpened' | 'issueClosed' | 'issueClosedNotPlanned' | 'pullOpened' | 'pullClosed' | 'pullMerged' | 'draft' | 'issueDraft'
sx
SystemStyleObject