Magoo Component UI logo Magoo Component UI
← Catalog

Notification Preferences

notification-preferences organism experimental

A matrix of notification types against Email, Push, and SMS channels, each cell a toggle switch.

Also in: Forms

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
Notification Email Push SMS
Product updates
Security alerts
Weekly digest
Mentions and comments
AllOn
Notification Email Push SMS
Billing receipts
Login from new device
Team invitations

Props

NameTypeReq
rows array ✓

Related components

How to use

Each cell is a role="switch" button carrying data-channel and a data-state boolean mirrored onto its knob; the primary track fill and knob position are driven by data-[state=true] variants, so the initial state renders with no JavaScript (and in screenshots). behavior.js flips data-state and aria-checked on click and dispatches a bubbling prefs:change CustomEvent with detail { label, channel, on }. The portable self-init reads config from the DOM (no props object) and removes all listeners on teardown.

Use cases

formlist WCAG AA SEO 15 dir: both ai-generated