Magoo Component UI logo Magoo Component UI
← Catalog

Benefits Enrollment

benefits-enrollment organism experimental

A single-select card of benefit plans, each with a tier, premium, feature list and a selected radio state.

Also in: Cards

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
Dental

Props

NameTypeReq
plans array ✓
label string

Related components

How to use

Layout and the selected styling are pure CSS: each plan carries data-selected, and the data-[selected=true]: / group-data-[selected=true]: utilities paint the border, tint and check with no JavaScript, so the initial selection renders in screenshots. behavior.js wires the choose-one interaction: clicking a plan sets its data-selected to true, clears the siblings, keeps aria-checked in sync, and dispatches a bubbling "benefit:select" event carrying { name }. The portable self-init reads everything from the DOM - no props object is passed.

Use cases

listcard WCAG AA SEO 25 dir: both ai-generated