State
Use state for rendering the status of an item.
On this page
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.
On this page
Import
import {StateLabel} from '@primer/react'
Examples
Props
StateLabel
Name | Default | Description |
---|---|---|
variant | 'normal' | 'small' | 'normal' |
statusRequired | 'issueOpened' | 'issueClosed' | 'issueClosedNotPlanned' | 'pullOpened' | 'pullClosed' | 'pullMerged' | 'draft' | 'issueDraft' | |
sx | SystemStyleObject |