Skip to content
Hazine

Variant selectors

0 of 5 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.

Planned 5

  • Size Chips with Availability

    Availability is carried by text, not by a strikethrough or colour alone. Unavailable sizes remain reachable by keyboard so the reason and the notify action can be discovered, and chips meet the 24px target with room to spare.

  • Named Colour Swatches

    Single choice that drives the rest of the page: selecting a swatch swaps the gallery, price and availability, hover and focus preview the image without committing, and sold-out colours stay selectable so the notify-me path is reachable. Covers two-tone and pattern swatches and an overflow button; fills come from product data through an inline CSS variable while ring, check and border use semantic tokens.

    Pro
  • Option Matrix with Quantities

    Many variants are chosen at once in two dimensions rather than one variant through sequential radio groups. Out of stock cells are disabled with a visible dash and reason, and quantities are capped to stock with an inline message.

    Pro
  • Searchable Variant Dropdown

    Trades always visible options for compactness and search. Each row carries secondary data, a plus or minus price delta and availability text, that chips cannot hold, and filtering matches on aliases such as model numbers.

    Pro
  • Personalisation Text Field

    Free text is the variant value. It validates as the shopper types, strips unsupported characters with an explanation, and requires a confirmation checkbox stating that personalised items cannot be returned before the option counts as complete.

    Pro