Layout · Container

Container

Max-width content container. Caps content at the --container-width-{'{size}'} token and centers it.

Live example

{#each sizes as s (s)} {/each}

Container content (size: {size}).

Props

Prop Default Notes
size 'xl' sm · md · lg · xl · xxl · full
align 'center' left · center · right
paddingX var(--container-padding-inline) override per-instance
… plus every BoxProps prop

Reference