StatusLight
The props declared for StatusLight, generated from the types @proyecto-viviana/ui ships.
Import
import { StatusLight } from "@proyecto-viviana/ui";Props
Differs from @proyecto-viviana/solid-spectrum
variantadds 'warning', 'success', 'metric'.
| Prop | Type | Default | Description |
|---|---|---|---|
children | number | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | — | The content to display as the label. |
variant | 'negative' | 'warning' | 'success' | 'informative' | 'neutral' | 'positive' | 'notice' | 'metric' | 'yellow' | 'chartreuse' | 'celery' | 'seafoam' | 'cyan' | 'indigo' | 'purple' | 'fuchsia' | 'magenta' | 'pink' | 'turquoise' | 'brown' | 'cinnamon' | 'silver' | 'neutral' | The variant changes the color of the status light. |
size | 'S' | 'M' | 'L' | 'XL' | 'M' | The size of the status light. |
role | "status" | — | An accessibility role for the status light. Should be set when the status can change at runtime. |
styles | StyleString | (() => StyleString | undefined) | — | Spectrum-defined generated classes. |
UNSAFE_className | string | UnsafeClassName | — | Additional CSS class name. Use only as a last resort. |
UNSAFE_style | JSX.CSSProperties | — | Additional inline styles. Use only as a last resort. |
id | string | — | Not yet documented |
slot | string | — | Not yet documented |
ref | HTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; } | — | Not yet documented |
aria-label | string | — | Not yet documented |
aria-labelledby | string | — | Not yet documented |
aria-describedby | string | — | Not yet documented |
aria-details | string | — | Not yet documented |
Declared in packages/viviana-ui/src/statuslight/index.tsx.
Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.