Display
Status <pm-status>
Status: a coloured dot with a label, for the state of a service, a person or a job ("Operational", "Away").
Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="sm"size="md"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
| Attribute | Type | Default | Description |
|---|---|---|---|
pulse | boolean | false | A 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). |
label | string | — | 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
| Slot | Description |
|---|---|
(default) | The label. Without it, give label for screen readers. |
CSS parts
| Part | Description |
|---|---|
::part(dot) | The dot. |