Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Status <pm-status>

Status: a coloured dot with a label, for the state of a service, a person or a job ("Operational", "Away").

Full screen
Operational Degraded Outage Offline

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/status'; </script> <pm-status tone="success" pulse>Operational</pm-status> <pm-status tone="warning">Degraded</pm-status> <pm-status tone="danger">Outage</pm-status> <pm-status tone="neutral">Offline</pm-status>

Sizes

Set with the size attribute; controls keep touch-sized targets on phones.

Operational
size="sm"
Operational
size="md"
Operational
size="lg"

Overview

The colour comes from tone; the text says what it means, so the state never depends on colour alone. pulse adds a ring that grows from the dot for things that are live right now.

Attributes

AttributeTypeDefaultDescription
pulsebooleanfalseA ring grows from the dot: the thing is live. Not shown with reduced motion.
size'sm' | 'md' | 'lg'—Size: sm, md or lg (md when not set).
labelstring—Accessible name when there is no visible label.

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.

Slots

SlotDescription
(default)The label. Without it, give label for screen readers.

CSS parts

PartDescription
::part(dot)The dot.

Used in templates

ContactServer error (500)