Product

The Product component provides a reusable pattern for products in the interface.

Regular product

Heading 1

Heading 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Heading 2

Heading 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Heading 3

Heading 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

API

Parameter Default Description
Product name
primary Background color to use
false An image object
[] Array of price objects
false Should currency be displayed before the price
Label describing the product
Extra text displayed above bullet points
[] Array of bullet points for the product
[] The button to display at the bottom
false Is the product featured? Make the product stand out from the rest

CSS API

Variable Default Type Values Description
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--base) range - Main unit that drives radius and spacing scales.
var(--font-size-100) range - Base font size.
var(--font-size-600) range - Five steps above base in the type scale. Equivalent to h2.
var(--color--primary) color - Primary
var(--color--secondary) color - Secondary

Similar components