product-card-horizontal

Product Card Horizontal

Product card that lays its image beside the details once its container is wide enough, with description, rating, swatches, price and add to cart.

Parts

PartFileDoes
ProductCardHorizontalProductCardHorizontal.vueShows a product with its image beside its details and price, with an add-to-cart button.

Styling

All of Product Card Horizontal’s styles live in product-card-horizontal.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
@vueuse/core

Built from

API reference

ProductCardHorizontal.vue

Shows a product with its image beside its details and price, with an add-to-cart button.

Props 12

PropTypeDefault
product*Product—
addToCartLabelstring'Add to Cart'
addedLabelstring'Added'
clearoutLabelstring'Clearout'
inStoreLabelstring'In Store'
colourLabelstring'Colour'
moreColoursLabel((count: number) => string)`+${count}`
localestring—
ratingLabel((score: number, max: number) => string)—
rationumber1
surface'raised' | 'bare''raised'
classClassValue—

Events 1

EventPayload
add-to-cartproduct: Product

Data attributes 1

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

Recipe product-card-horizontal 1 group

Recipe product-card-horizontal-image 1 group

Recipe product-card-title 1 group

Recipe product-card-lift 1 group

Recipe hint 1 group

Recipe meta 1 group

Recipe focus-ring 1 group

Product Card Horizontal
State