Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

Led

Open .md
Live preview

Loading example…

Led is part of the Atoms set, imported from @jcsoftdev/ui/atoms.

import { Led } from "@jcsoftdev/ui/atoms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/atoms/led.

<Led status="success" label="Barbero disponible" showLabel />
Prop Type Default Description
status "success" | "warning" | "danger" | "idle" "success"
label * string Text describing the status: color is never the only signal.
showLabel boolean
classNames Partial<Record<LedPart, string>> Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last.

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/atoms/led/led.tsx