Block
The Block component provides a reusable pattern for block in the interface.
Block ratio 12:16
Renders blocks with a tall 12:16 portrait ratio, with images, dates displayed inline and as a badge.
Nulla vitae elit libero, a pharetra augue
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus
Maecenas faucibus mollis interdum
Curabitur blandit tempus porttitor
Block ratio 4:3
Renders blocks with a standard 4:3 landscape ratio, with images and an optional link.
Nulla vitae elit libero, a pharetra augue
Nullam quis risus eget urna mollis ornare vel eu leo
Justo Elit Tortor
Donec ullamcorper nulla non metus auctor fringilla
Block ratio 4:3, without spacing between blocks
Renders blocks inside an o-grid--no-gutter container, which removes border radius and drop shadow from adjacent blocks.
Donec id elit non mi porta gravida at eget metus
Lorem ipsum dolor sit amet, consectetur adipiscing elit
Maecenas sed diam eget risus varius blandit sit amet non magna
Pharetra Etiam
Block without a image
Renders blocks without images, demonstrating meta as a plain string, meta as an array of tags, and optional link behaviour.
Nulla vitae elit libero, a pharetra augue
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus
Maecenas faucibus mollis interdum
Curabitur blandit tempus porttitor
Block with content text and secondary meta
Renders blocks with the content parameter (descriptive body text) and secondaryMeta shown beneath the primary meta.
Nulla vitae elit libero
Aenean lacinia bibendum nulla sed consectetur.
Nullam quis risus eget
Cras mattis consectetur purus sit amet fermentum.
Block with icon
Renders blocks with an icon placed next to the heading, optionally wrapped in a coloured circle via iconBackgroundColor.
Block ratio 16:9
Renders blocks with a wide 16:9 landscape ratio, suitable for video thumbnails and cinematic imagery.
Nulla vitae elit libero, a pharetra augue
Nullam quis risus eget urna mollis ornare
Block ratio 1:1
Renders blocks with a square 1:1 ratio, suitable for symmetric visual layouts and profile-style imagery.
API
| Parameter | Default | Description |
|---|---|---|
|
heading
|
The heading of the block | |
|
content
|
Short text to describe target content. | |
|
meta
|
String or array of strings containing the meta information | |
|
secondaryMeta
|
String or array of strings containing the secondary meta information | |
|
image
|
false | Array of image attributes, src, alt, backgroudColor. |
|
link
|
Simple href link | |
|
ratio
|
4:3 | Ratio of the block |
|
date
|
Preformatted date | |
|
dateBadge
|
false | Display date as a badge. |
|
icon
|
false | An array with the same specification as the icon component |
|
iconBackgroundColor
|
- |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-block--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-block--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-block--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Corner Shape |
|
--c-block--color--alpha
|
var(--color--alpha) | rgba | - | Used for overlays. Includes opacity — set both color and alpha together. |
|
--c-block--color--secondary
|
var(--color--secondary) | color | - | Secondary |
|
--c-block--shadow-color
|
var(--shadow-color) | rgba | - | Shadow Color |
|
--c-block--shadow-amount
|
var(--shadow-amount) | range | - | Multiplier for elevation shadows. 0 = none, 1 = default. |
|
--c-block--color--alpha-contrast
|
var(--color--alpha-contrast) | color | - | Used for text and icons on alpha overlays. |
|
--c-block--color--alpha-border
|
var(--color--alpha-border) | color | - | Manual companion token for alpha overlay border states. |
|
--c-block--font-size-400
|
var(--font-size-400) | range | - | Three steps above base in the type scale. Equivalent to h4. |