Container
Keeps page content at a good, readable width, and centers it on the page, with a small amount of side padding for small screens.
Import
tsx
import { Container } from "@aizvi/ui";Basic example
tsx
<Container>
<Heading level={1}>Page title</Heading>
<Text>Page content stays at a readable width.</Text>
</Container>Live preview
Sizes
tsx
<Container size="sm">A narrow container, good for a single article.</Container>
<Container size="md">A medium container.</Container>
<Container size="lg">The normal, general purpose width.</Container>
<Container size="xl">A wide container, good for a full page layout.</Container>
<Container size="full">No maximum width at all.</Container>Live preview
Props
Container accepts every normal <div> attribute, plus this one.
size, one ofsm,md,lg,xl, orfull. The default islg.
Accessibility
- Container is a plain layout box. It does not add or remove any meaning, so it never affects how a screen reader reads your page.