Product Card Featured
Large product card with a wishlist toggle and a feature badge on the photo, the brand above the title, a description, swatches that switch the image, and a prominent price beside a compare toggle.
Parts
| Part | File | Does |
|---|---|---|
| ProductCardFeatured | ProductCardFeatured.vue | Shows a product with its image and price, with compare and wishlist buttons. |
Styling
All of Product Card Featured’s styles live in product-card-featured.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 and price, with compare and wishlist buttons.
Props 13
| Prop | Type | Default | |
|---|---|---|---|
| product* | Product | — | |
| |||
| compareLabel | string | 'Compare' | |
| |||
| comparingLabel | string | 'Comparing' | |
| |||
| 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 | — | |
| |||
| ratio | number | 1 | |
| |||
| surface | 'raised' | 'bare' | 'raised' | |
| |||
| class | ClassValue | — | |
| |||
Events 2
Data attributes 1
| Data attribute | Values | |
|---|---|---|
| data-surface | 'raised' | 'bare' | |
| ||