GitHub

Variant Selector

Color swatches, size pickers, and option selectors for product variants in retail/POS.

Size Selector

Size M

Color Swatches

Color Ocean Blue
Only 3 left in stock

Chip & Button Group Variants

ERPlora Material
Quantity

Options with Price & Image Variant

Storage 256 GB
ERPlora Style

Classes Reference

Class Description
.variant-selectorBase container (flex column)
.variant-selector-labelLabel row with title and selected value
.variant-selector-selectedCurrent selection text (muted)
.variant-selector-optionsOptions container (flex wrap)
.variant-selector-optionIndividual selectable option
.variant-selector-option-selectedSelected state (primary border/bg)
.variant-selector-option-disabledDisabled state (reduced opacity)
.variant-selector-option-unavailableUnavailable with strikethrough line
.variant-selector-sm / -lgSize variants for options
.variant-selector-colorColor swatch mode (circular options)
.variant-selector-option-lightLight swatch with visible border
.variant-selector-option-darkDark swatch (white checkmark)
.variant-selector-imageImage thumbnail selector
.variant-selector-chipChip/pill style options
.variant-selector-button-groupConnected button group (no gap)
.variant-selector-dropdownDropdown select variant
.variant-selector-option-contentContent wrapper for name + price
.variant-selector-option-nameOption name text
.variant-selector-option-priceOption price text
.variant-selector-option-diffPrice difference indicator
.variant-selector-stockStock status indicator row
.variant-selector-stock-in-stockGreen dot - in stock
.variant-selector-stock-low-stockYellow dot - low stock
.variant-selector-stock-out-of-stockRed dot - out of stock