Skip to content

Bento & Layout

Centred Container

Reliable two-axis centring primitive with a flex or grid method and explicit known-height or min-height sizing.

FreeMIT licensed. Install it with the CLI — no account, no key.
$velocityx add center-box
Props & docs
AstroReactTailwind CSSNew

Centred Container

Centred Container

Live preview of the Centred Container component

method="flex" · knownHeight="220px"

method="grid" · minHeight="220px" (content can grow)

The code ships with Velocity.

Every component's full source — copy-paste ready, yours to edit — comes with any Velocity package. Buy once, own the code forever.

Get Velocity X — from $1,250 See all packages →

Using the Centred Container component

Every Velocity component is plain Astro or React markup styled with Tailwind utility classes. There is no proprietary runtime and no design-system wrapper to adopt — the component inherits whatever colour and type tokens your project already defines.

Browse all →