product-options

Product Options

Product buy box with the product shot, price and rating, colour swatches with sold-out colours crossed out, a size choice that must be made before adding, with sold-out sizes, a quantity stepper, and add-to-cart and wishlist actions.

Parts

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

Styling

All of Product Options’s styles live in product-options.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue

Built from

API reference

ProductOptions.vue

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

Props 23

PropTypeDefault
title*string—
descriptionstring—
price*PriceType—
imagestring—
imageAltstring—
ratingnumber—
ratingCountnumber—
coloursProductColour[][]
sizesProductSize[][]
maxQuantitynumber10
colourLabelstring'Colour'
sizeLabelstring'Size'
quantityLabelstring'Quantity'
addToCartLabelstring'Add to cart'
sizeRequiredLabelstring'Choose a size'
colourUnavailableLabelstring'Sold out'
localestring—
wishlistLabelstring'Save to wishlist'
surface'raised' | 'bare''raised'
classClassValue—
colourstring—
sizestring—
quantitynumber1

Events 5

EventPayload
wishlist—
update:colourvalue: string | undefined
update:sizevalue: string | undefined
update:quantityvalue: number
addToCartselection: ProductSelection

Data attributes 1

Data attributeValues
data-surface'raised' | 'bare'

Recipe product-options-image 1 group

Product Options