Skip to main content

Container

A layout container with visuals: border, background, corner radius, padding. Use Row / Column when you only need layout.

Signature

Attributes

Content

Container content is its child elements:
Bare text cannot go directly inside a container; use Text for text.

Attribute elements

Runtime behavior

  • Renders as a flex container; Direction selects flex-row / flex-col.
  • Background="Card" uses the card background with blur; Transparent has no background.
  • Border uses the theme border color.
  • Size comes from the parent layout / dashboard grid; there are no pixel width or height attributes.

Example

Gotchas

  • Nesting several Card containers gives you a double background; use Transparent for the inner one.
  • Stretch makes children fill the cross axis; text may be stretched wide, so pair it with Align="Start" when needed.