Magoo Component UI logo Magoo Component UI
← Catalog

Modifier Picker

modifier-picker molecule experimental

A card of grouped, selectable option chips for customising a menu item with modifiers.

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

Build your burger

Temperature Required
Cheese
Extras
Drink

Customise your latte

Size Required
Milk Required
Syrup

Props

NameTypeReq
groups array ✓
item string

Related components

How to use

behavior.js reads each chip's initial data-selected attribute, syncs aria-pressed, and on click toggles data-selected and dispatches a bubbling "modifier:change" CustomEvent whose detail carries the option label and its new selected state. No props object is passed to the portable self-init; enforce required-group rules in the host.

Use cases

formlist WCAG AA SEO 15 dir: both ai-generated