Magoo Component UI logo Magoo Component UI
← Catalog

Sensor Alarm Banner

sensor-alarm-banner molecule experimental

A severity-tinted banner announcing a sensor reading that breached its threshold, with an acknowledge action.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Critical

Props

NameTypeReq
sensor string ✓
value string
threshold string
severity enum (info | warning | critical)
time string

Related components

How to use

Layout and colour are pure CSS from the severity variant, so the banner renders fully with no JavaScript (and in screenshots). behavior.js wires the Acknowledge button - clicking it sets data-acknowledged="true" on the root (which dims it via a data-attribute variant), disables the button, and dispatches a bubbling sensor-alarm:acknowledged event. The portable self-init passes no props object; there is no data-* config to read beyond the rendered markup.

Use cases

bannerhighlight WCAG AA SEO 35 dir: both ai-generated