Container
<vara-container> is the minimal layout primitive for project-specific compositions. It accepts paired content and applies a consistent maximum width.
Usage
<vara-container
size="xs"
class="rounded-lg border border-base-400 bg-base-200 py-6"
>
Contained content stays readable at every viewport size.
</vara-container>
Preview
Contained content stays readable at every viewport size.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | string | "md" | One of: xs, sm, md, lg, xl, full. |
padding | string | "true" | Apply standard horizontal padding. |
align | string | "center" | One of: left, center, right. |
class | string | "" | Additional CSS classes. |
Sizes
size | Maximum width |
|---|---|
xs | 28rem |
sm | 48rem |
md | 72rem |
lg | 80rem |
xl | 120rem |
full | 100% |
The paired body is trusted rendered content. Use it for author-controlled Markdown and component output, not unsanitized external HTML.