import { Container } from "@pixxl-tools/components";
// In Server Components:
import { Container } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
maxWidth | "sm" | "md" | "lg" | "xl" | "site" | "full" | — | Content width: site (default, --pixxl-size-site, 75rem = 1200 px: the width SiteHeader and FooterBar use, so a page lines up with them), the --pixxl-size-content-* tokens (sm 760, md 960, lg 1200, xl 1320 px) for narrower or wider columns, or full for app work areas. |
gutter | boolean | — | Inline padding. true pads the inline sides with the page gutter (--pixxl-layout-page-gutter, at least the safe-area inset) and makes maxWidth the width of the content, so a page Container lines up with the SiteHeader brand and the FooterBar content at every width. false pads every side with padding and maxWidth includes it (the 0.2 box). Default: true unless padding="none". |
padding | ComponentPadding | — | Block padding (and inline padding when gutter={false}), default md (16 px). none removes all padding: use it for a Container nested in an already padded bar or section. |
maxWidth"sm" | "md" | "lg" | "xl" | "site" | "full"
Content width: site (default, --pixxl-size-site, 75rem = 1200 px: the width SiteHeader and FooterBar use, so a page lines up with them), the --pixxl-size-content-* tokens (sm 760, md 960, lg 1200, xl 1320 px) for narrower or wider columns, or full for app work areas.
gutterboolean
Inline padding. true pads the inline sides with the page gutter (--pixxl-layout-page-gutter, at least the safe-area inset) and makes maxWidth the width of the content, so a page Container lines up with the SiteHeader brand and the FooterBar content at every width. false pads every side with padding and maxWidth includes it (the 0.2 box). Default: true unless padding="none".
paddingComponentPadding
Block padding (and inline padding when gutter={false}), default md (16 px). none removes all padding: use it for a Container nested in an already padded bar or section.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Container maxWidth="sm">...</Container>