Skip to content

Container ​

Centred max-width box

Caps the width of a page's content and centres it, so lines stay readable on wide screens. One per page region; it doesn't lay anything out inside.

Basic
size sm
size md
size lg
  • size: sm, md, lg (default) or full. padded (default) keeps side gutters, including the safe area on notched phones.
  • as sets the element (main, section…).

Usage ​

ts
import { BlessContainer } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
asstring"div"
size"md" | "sm" | "lg" | "full""lg"
paddedbooleantrue

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.