ModifierGroup
Displays a single modifier group (e.g., “Choose your size”, “Add toppings”) with its options. Supports radio (single-select), checkbox (multi-select), and counter (quantity) input types.Preview
View in StorybookImport
Usage
Props
The modifier group object containing name, options, min/max selections, and input type.
Currently selected modifiers for this group.
Callback fired when modifier selections change.
Behavior
- Enforces min/max selection constraints with visual feedback
- Radio groups auto-deselect previous option
- Counter inputs respect per-option quantity limits
- Displays price adjustments next to each option (e.g., ”+$1.50”)