Anex UI logoAnex UI
npm install anexui
Documentation

Documentation

Container

A max-width wrapper that centres content with consistent responsive horizontal padding.

Preview

maxWidth="sm"
maxWidth="md"
maxWidth="lg"
maxWidth="xl"

Usage

import { Container } from "anexui";

<Container>
  <p>Centred content</p>
</Container>
Copy code

Max-width sizes

<Container maxWidth="sm">Small — 640px</Container>
<Container maxWidth="md">Medium — 768px</Container>
<Container maxWidth="lg">Large — 1024px</Container>
<Container maxWidth="xl">XL — 1280px (default)</Container>
<Container maxWidth="2xl">2XL — 1536px</Container>
<Container maxWidth="full">Full — no max-width</Container>
Copy code

Props

| Prop | Type | Default | Description | |---|---|---|---| | maxWidth | "sm" \| "md" \| "lg" \| "xl" \| "2xl" \| "full" | "xl" | Maximum width of the container |

All standard HTML <div> attributes are accepted.

Accessibility

Container is a layout-only wrapper with no ARIA semantics. Use semantic HTML (<main>, <section>, <article>) inside it.