product-card-hover

Product Card Hover

Linked product tile whose quick-add button slides up over the image on hover or focus, with name, price, rating and colour dots.

Parts

PartFileDoes
ProductCardHoverProductCardHover.vueShows a product with its image and price, with a quick-add button.

Styling

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

Install

npm packages
@lucide/vue
@vueuse/core

Built from

API reference

ProductCardHover.vue

Shows a product with its image and price, with a quick-add button.

Props 12

PropTypeDefault
product*Product—
quickAddLabelstring'Quick add'
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-hover-image 1 group

Recipe product-card-title 1 group

Recipe product-card-lift 1 group

Recipe meta 1 group

Recipe focus-ring 1 group

Product Card Hover
State