← All layout components

Core / Layout

Container

Constrains readable content width and centers it.

Live example

Reading container

This content is constrained to a readable width.

Interactive preview using local sample data. Styling is intentionally left to the consuming project.

Usage

<Container>Readable content</Container>

Adopt to your project

Keep this component semantically neutral. Use its documented props for behavior and className for project-specific spacing, width, typography, and visual treatment.

Accessibility

A Container is structural and has no interactive behavior.

API reference

Public attribute
size
padding
children
className

The preview above uses a safe local fixture. Confirm exact TypeScript props when adapting it to your application.

Installation

Full library
pnpm install:project /absolute/path/to/your-project

Planned guided selection
Layout → Container