Option Selectors
Components for selecting single or multiple product options with visual feedback.
Single Option Selector
Radio button selector for mutually exclusive options
Base price
+$300
+$600
Multi Option Selector
Checkbox selector for multiple options
Usage
The Option Selectors provide interactive UI elements for users to select product options. The SingleOptionSelector is used for mutually exclusive choices (like size or color), while the MultiOptionSelector allows users to select multiple options (like accessories or add-ons).
Props
SingleOptionSelector
options- Array of option objects with id, name, priceAdjustment, and imageselectedOption- ID of the currently selected optiononChange- Function called when an option is selected
MultiOptionSelector
options- Array of option objects with id, name, priceAdjustment, and imageselectedOptions- Array of IDs of the currently selected optionsonChange- Function called when an option is toggled