Components / feedback
Signals
A row of small icons, one per source, each marked connected or not. It states a fact about each source and never acts.
Summary
A row of small icons, one per source, each marked connected or not. It states a fact about each source and never acts.
| APG pattern | none |
| Built on | native elements |
| Status | self-tested |
| Since | 0.14.0 |
<Signals
label="Status"
signals={[
{ icon: <Icon path={envelope} />, label: 'Mail connected', on: true },
{ icon: <Icon path={microphone} />, label: 'Podcast not connected', on: false },
]}
/>
Anatomy
A <ul data-se="signals"> of <li data-part="signal">. Each signal holds the icon, the mark and the words. The state is data-state="on" or "off" on the signal.
| Part | Element | Required |
|---|---|---|
icon | <span> | yes |
signal | <li> | yes |
sr | <span> | yes |
status | <span> | yes |
<ul data-se="signals" aria-label="Status">
<li data-part="signal" data-state="on" title="Mail connected">
<span data-part="icon" aria-hidden="true"><svg viewBox="0 0 256 256" fill="currentColor">…</svg></span>
<span data-part="status" aria-hidden="true"></span>
<span data-part="sr">Mail connected</span>
</li>
<li data-part="signal" data-state="off" title="Podcast not connected">…</li>
</ul>
status is the mark's name for the reason Badge's is: Carousel owns dot, and a carousel dot is a button that picks a slide.
Properties
Open — see Signals.d.ts.
| Property | Values | Default | What it does |
|---|---|---|---|
label | string | none | Names the list: "Status", "Sources". The signals name themselves. |
form | 'solid' | none | The off mark. Omitted, a ring: on and off differ in shape as well as color. solid fills it with --se-text-disabled, so both marks are dots and only the color separates them. |
signals | Signal[] | [] | One entry per source, in reading order: icon, label (the whole name, state included) and on. |
States
| State | Expressed as | |
|---|---|---|
| Open or closed | data-state |
A signal is on or off, set by data-state. There is no third state: a source whose state is not known yet is off until it is read, and its name says "not connected" or "checking", the caller's words.
Behavior
A static list. Nothing in it takes focus, and nothing is pressed: it reports, it does not act. A source that can be connected from here is a Button beside the row, not a signal.
Accessibility
The list is a <ul> named by label, so a screen reader announces "Status, list, 4 items". Each item reads its own sr words, "Mail connected", and the icon and the mark are aria-hidden. A title on the item gives the sighted reader the same words on hover; it is a convenience, and sr is the name.
The state is never color alone. A filled dot is on and a ring is off, so the two differ in shape. The ring is drawn in --se-text-muted and the dot in --se-positive; both are 3:1 or better against --se-surface in every shipped skin (check:contrast audits both pairs).
Keyboard
None of its own. It is not focusable and takes no keys.
Roles, states and properties
| Attribute | Set by |
|---|---|
aria-hidden | always true |
aria-label | set at render |
Focus
Never takes focus. A source the reader can act on has a Button beside the row.
Screen reader
Not recorded as verified. Stage 4 of the readiness ladder — driving each component with VoiceOver and NVDA — is unstarted across the package, and no component should claim otherwise until docs/journal/ records the session that did it.
Contrast and target size
npm run check:contrast audits every color pair this component uses across all four skins, light and dark, and fails the build on a shortfall. Two waivers are on the record in docs/audit/DEFERRED.md.
It sets no target size of its own; anything interactive inside it brings its own.
Tested
test/apg/signals.test.jsxtest/browser/signals-solid.spec.mjstest/browser/signals.spec.mjs
Known gaps
_No upstream requirement is recorded as not applicable._
Appearance
| Token | Used for |
|---|---|
--se-bg | border-color |
--se-border-width | border |
--se-dot-size | block-size, inline-size, inset-block-end, inset-inline-end |
--se-icon-sm | block-size, font-size, inline-size |
--se-positive | background, border-color |
--se-radius-pill | border-radius |
--se-space-3 | gap |
--se-surface | background |
--se-text-disabled | background |
--se-text-muted | border, color |
An icon is --se-icon-sm and takes the row's muted text color. The mark sits at the icon's end-bottom corner, a quarter of its own size outside the box, and is --se-dot-size, the same dot Badge draws. On is a solid --se-positive dot; off is a --se-text-muted ring with the surface showing through. The row wraps, with --se-space-3 between signals.
Motion
None. The mark changes the moment the source does.
Content
The label is the full state, in the reader's words. Mail connected, Calendar not connected. Not Mail, which leaves the state to a color, and not Mail: status OK.
One name per source, sentence case. The same word the rest of the page uses for the source.
Usage
Use it for a few sources the reader checks at a glance: a page header's mail, calendar and reminders. More than six is a table.
Signals report; Badge names; Button acts. A row of words that name a state is Badges. A source that can be connected from the page gets a Button beside it, never a pressable signal.
When not to use it. For one state of one thing, a Badge with status. For a meter, Meter.
Notes
A new component, not a Badge variant (3 Nov 2026). The Daily Brief's sub header drew one icon per source with a dot at its corner, and its owner asked for icons, not tags. A Badge is words and a box; this is icons with no box and no words on the screen. The words live in sr, which is the one thing the two share.
The off mark is --se-text-muted, not --se-border-strong. --se-border-strong is 1.5:1 against the surface in davor-anic, under the 3:1 a state mark needs when it is the only drawn cue. The muted text color clears it in every skin.
The solid form is the Brief's, and the weaker one (3 Nov 2026). The Daily Brief's original draws an off source as a small filled grey dot, not a ring. form="solid" does that, in --se-text-disabled, because --se-border-strong is 1.5:1 on the surface. A ring against a dot is the stronger signal, since it survives a reader who cannot separate the two colors; the solid form leans on color and on the name, so it is an option and not the default. Rejected: making the ring a skin value, because a skin sets colors and the ring is a shape.
No size and no intent. One icon size, --se-icon-sm, and one meaning: connected. A source that is connected and failing is a different fact, and an Alert says it.