Product
The Product component provides a reusable pattern for products in the interface.
Regular product
Heading 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Heading 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Heading 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
API
| Parameter | Default | Description |
|---|---|---|
|
heading
|
Product name | |
|
backgroundColor
|
primary | Background color to use |
|
image
|
false | An image object |
|
prices
|
[] | Array of price objects |
|
currencyFirst
|
false | Should currency be displayed before the price |
|
label
|
Label describing the product | |
|
meta
|
Extra text displayed above bullet points | |
|
bulletPoints
|
[] | Array of bullet points for the product |
|
button
|
[] | The button to display at the bottom |
|
featured
|
false | Is the product featured? Make the product stand out from the rest |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-product--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-product--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-product--font-size-100
|
var(--font-size-100) | range | - | Base font size. |
|
--c-product--font-size-600
|
var(--font-size-600) | range | - | Five steps above base in the type scale. Equivalent to h2. |
|
--c-product--color--primary
|
var(--color--primary) | color | - | Primary |
|
--c-product--color--secondary
|
var(--color--secondary) | color | - | Secondary |