Box

The Box component provides a reusable pattern for box in the interface.

A basic box

Boxes with images

Simple box with images displayed in a grid with a desktiop width of three.

Boxes with icons

A box with an icon, is simply a box with an svg image.

API

Parameter Default Description
The heading of the block
Short text to describe target content.
String or array of strings containing the meta information
String or array of strings containing the secondary meta information
Simple href link
1:1 Ratio of the block
Preformatted date
Display date as a badge.
false Image object (see image component), svg or raster image.
Icon name as a string.

CSS API

Variable Default Type Values Description
var(--border-radius) range - Border Radius
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--color--primary) color - Primary
var(--shadow-color) rgba - Shadow Color
var(--shadow-amount) range - Multiplier for elevation shadows. 0 = none, 1 = default.
var(--corner-shape) select square, round, squircle, circular, bevel, scoop Corner Shape
var(--color--primary-contrast) color - Primary Contrast
var(--font-size-400) range - Three steps above base in the type scale. Equivalent to h4.

Similar components