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 Type Description
string The box heading.
string The descriptive content.
array|string The primary meta information.
array|string The secondary meta information.
string The optional target URL.
1:1 string The box aspect ratio.
array|string The preformatted date or Date component attributes.
null ?boolean Whether to display the date as a badge.
false ComponentLibrary\Integrations\Image\ImageInterface|array|boolean The image source or Image component attributes.
array|string|boolean The icon name or Icon component attributes.

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