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

PropTypeDefaultDescription
sizestring"md"One of: xs, sm, md, lg, xl, full.
paddingstring"true"Apply standard horizontal padding.
alignstring"center"One of: left, center, right.
classstring""Additional CSS classes.

Sizes

sizeMaximum width
xs28rem
sm48rem
md72rem
lg80rem
xl120rem
full100%

The paired body is trusted rendered content. Use it for author-controlled Markdown and component output, not unsanitized external HTML.