product-options

Product Options

Product buy box with the product shot, price and rating, colour swatches, size choice with sold-out sizes, a quantity stepper, and add-to-cart and wishlist actions.

States: Default

Parts

PartFileDoes
ProductOptionsProductOptions.vueLets the shopper choose colour, size and quantity, then add the product to the cart.

Styling

PartRecipe
ProductOptionsproduct-options-image

Install

Writes 3 files into components/sections/product-options/. For agents, npx @frontic/ui docs product-options prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue

Built from

API reference

ProductOptions ProductOptions.vue

Lets the shopper choose colour, size and quantity, then add the product to the cart.

PropTypeDefault
title*string—
descriptionstring—
price*PriceType—
imagestring—
imageAltstring—
ratingnumber—
ratingCountnumber—
coloursProductColour[][]
sizesProductSize[][]
maxQuantitynumber10
colourLabelstring'Colour'
sizeLabelstring'Size'
quantityLabelstring'Quantity'
addToCartLabelstring'Add to cart'
wishlistLabelstring'Save to wishlist'
surface'raised' | 'bare''raised'
classClassValue—
colourstring—
sizestring—
quantitynumber1
EventPayload
wishlist—
update:colourvalue: string | undefined
update:sizevalue: string | undefined
update:quantityvalue: number
addToCartselection: ProductSelection
Data attributeValues
data-surface'raised' | 'bare'
Recipe product-options-imageSets
base: product-options-image 2 properties
Example