Container

A centered, max-width wrapper for page and section content.

Centered content

A Container caps its width, centers itself with auto margins, and keeps gutter padding on small screens.

Import#

import { Container } from "astralis-ui";

Sizes#

maxW takes the sizing scale — pick per context: xssm for forms and prose, 5xl (the default) for typical pages, larger for dashboards.

maxW="xs"

maxW="md"

maxW="2xl"

Props#

Container extends Box; its three own props just set sensible page-wrapper defaults (w="full", auto inline margins).

PropTypeDefaultDescription
maxW"xs" – "8xl" | any Box width token"5xl"Width cap; the container centers itself with auto inline margins.
px"0.5" – "96" (spacing scale)"4"Gutter padding so content never touches the viewport edge.
centerContentbooleanfalseAlso stacks and centers the children themselves (flex column, centered).