Magoo Component UI logo Magoo Component UI
← Catalog

Automation Rule Row

automation-rule-row molecule experimental

An if/then automation row with trigger and action chips and an enable switch.

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

If Motion in hallway then Turn on porch light

Disabled

If Sunset then Close the blinds

Props

NameTypeReq
trigger string ✓
action string ✓
enabled boolean
icon string

Related components

How to use

Interactive. The role="switch" button flips on click: it sets data-state (and aria-checked) on the switch and its knob and dispatches a bubbling "rule:toggle" CustomEvent with detail { enabled }. Read the current state from the switch's data-state attribute.

Use cases

list-item WCAG AA SEO 25 dir: both ai-generated