Containerjsp
A centred column at a container width.
Layout and type- Install
- npx shadcn add @jsp/container
- Import from
- @/components/container
- Guidance
- draft · v0.1.0
Examples
Written in jsp-ds token utilities.
width="xs"
width="sm"
width="md"
width="prose"
width="form"
Guidance
When to use
- To centre content at a readable width with the page gutter either side. Section renders one for you.
Rules
width:prosefor reading,formfor forms,xs…xxlfor layouts.gutter: page side padding,sm/md/lg.- Use it directly only outside a Section, or with
Section width="none"when one band holds several columns.
Install
Terminal
npx shadcn add @jsp/containerImport
import { Container } from "@/components/container"