Product Card Minimal
Quiet product tile with colour pills, name and subtitle, rating, colour count and price; linked as a whole when it has no colour pills.
Parts
| Part | File | Does |
|---|---|---|
| ProductCardMinimal | ProductCardMinimal.vue | Shows a product with its image, name, price and number of colours. |
Styling
All of Product Card Minimal’s styles live in product-card-minimal.json. New to styling in Frontic UI? How styling works →
Install
Built from
API reference
Shows a product with its image, name, price and number of colours.
Props 10
| Prop | Type | Default | |
|---|---|---|---|
| product* | Product | — | |
| |||
| colorCountLabel | ((count: number) => string) | `${count} ${count === 1 ? 'Color' : 'Colors'}` | |
| |||
| clearoutLabel | string | 'Clearout' | |
| |||
| inStoreLabel | string | 'In Store' | |
| |||
| colourLabel | string | 'Colour' | |
| |||
| locale | string | — | |
| |||
| ratingLabel | ((score: number, max: number) => string) | — | |
| |||
| ratio | number | 1 | |
| |||
| surface | 'raised' | 'bare' | 'raised' | |
| |||
| class | ClassValue | — | |
| |||
Data attributes 1
| Data attribute | Values | |
|---|---|---|
| data-surface | 'raised' | 'bare' | |
| ||