1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month🚨 Slop police🚨 Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. sunui
  3. Variant Picker

Variant Picker

block

Product colour swatches and size options driven by per-combination stock. Hovering or focusing a colour previews its stock on the size row in place, and switching to a colour where the chosen size is sold out keeps the size and opens an inline note listing the colours that still have it. With onNotify, sold-out sizes open an Email me when it is back action in place, and showSummary adds a line such as Fog grey · M · Only 2 left where only the changed part rolls. Sizes are bordered boxes or, with sizeStyle="chips", typographic chips with one sliding outline; OptionChips exports that row on its own. Every row is a labelled radiogroup whose arrow, Home and End keys skip sold-out options, stock changes are announced politely, and all motion is instant under reduced motion.

pnpm dlx shadcn@latest add "https://sunui.synvize.com/r/variant-picker.json"
Premium blocks for shadcn/uiShadcnblocks.com · AffiliateExplore
  • framer-motion
  • utils
  • sunui-motion
  • stamp
components/variant-picker.tsx