Product Card Gallery
Image-led product tile with a wishlist toggle, variant thumbnails that switch the image, badge, rating and price.
Parts
| Part | File | Does |
|---|---|---|
| ProductCardGallery | ProductCardGallery.vue | Shows a product with its image, colour options, price and rating, and a wishlist button. |
Styling
All of Product Card Gallery’s styles live in product-card-gallery.json. New to styling in Frontic UI? How styling works →
Install
- npm packages
- @lucide/vue
Built from
API reference
Shows a product with its image, colour options, price and rating, and a wishlist button.
Props 13
| Prop | Type | Default | |
|---|---|---|---|
| product* | Product | — | |
| |||
| eyebrow | string | — | |
| |||
| wishlistLabel | string | 'Add to wishlist' | |
| |||
| wishlistedLabel | string | 'Remove from wishlist' | |
| |||
| clearoutLabel | string | 'Clearout' | |
| |||
| inStoreLabel | string | 'In Store' | |
| |||
| colourLabel | string | 'Colour' | |
| |||
| moreColoursLabel | ((count: number) => string) | `+${count}` | |
| |||
| locale | string | — | |
| |||
| ratingLabel | ((score: number, max: number) => string) | — | |
| |||
| ratio | number | 1 | |
| |||
| surface | 'raised' | 'bare' | 'raised' | |
| |||
| class | ClassValue | — | |
| |||
Events 1
| Event | Payload | |
|---|---|---|
| wishlist | product: Product | |
| ||
Data attributes 1
| Data attribute | Values | |
|---|---|---|
| data-surface | 'raised' | 'bare' | |
| ||