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
| Part | File | Does |
|---|---|---|
| ProductCardHorizontal | ProductCardHorizontal.vue | Shows 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
Shows a product with its image beside its details and price, with an add-to-cart button.
Props 12
| Prop | Type | Default | |
|---|---|---|---|
| product* | Product | — | |
| |||
| addToCartLabel | string | 'Add to Cart' | |
| |||
| addedLabel | string | 'Added' | |
| |||
| 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 | |
|---|---|---|
| add-to-cart | product: Product | |
| ||
Data attributes 1
| Data attribute | Values | |
|---|---|---|
| data-surface | 'raised' | 'bare' | |
| ||