Status lights are used to color code categories and labels commonly found in data visualization. When status lights have a semantic meaning, they should use semantic variant colors.
API
| Name | Type | Default |
|---|---|---|
children | ReactNode | Default: — |
The content to display as the label. | ||
variant | 'informative'
| 'neutral'
| 'positive'
| 'notice'
| 'negative'
| 'celery'
| 'chartreuse'
| 'cyan'
| 'fuchsia'
| 'purple'
| 'magenta'
| 'indigo'
| 'seafoam'
| 'yellow'
| 'pink'
| 'turquoise'
| 'cinnamon'
| 'brown'
| 'silver' | Default: 'neutral'
|
The variant changes the color of the status light. When status lights have a semantic meaning, they should use the variant for semantic colors. | ||
size | 'S'
| 'M'
| 'L'
| 'XL' | Default: 'M'
|
The size of the StatusLight. | ||
styles | StylesProp | Default: — |
Spectrum-defined styles, returned by the | ||
role | 'status' | Default: — |
An accessibility role for the status light. Should be set when the status can change at runtime, and no more than one status light will update simultaneously. For cases where multiple statuses can change at the same time, use a Toast instead. | ||
id | string | Default: — |
The element's unique identifier. See MDN. | ||
aria-label | string | Default: — |
Defines a string value that labels the current element. | ||
aria-labelledby | string | Default: — |
Identifies the element (or elements) that labels the current element. | ||
aria-describedby | string | Default: — |
Identifies the element (or elements) that describes the object. | ||
aria-details | string | Default: — |
Identifies the element (or elements) that provide a detailed, extended description for the object. | ||
UNSAFE_className | UnsafeClassName | Default: — |
Sets the CSS className
for the element. Only use as a last resort. Use the | ||
UNSAFE_style | CSSProperties | Default: — |
Sets inline style for the
element. Only use as a last resort. Use the | ||
slot | string | null | Default: — |
A slot name for the component. Slots allow the component to receive props from a parent
component. An explicit | ||