PUI
Layout Container

Container

Structural helpers for page headers and content composition.

PUI.Container provides structural helpers that do not belong to a single content family. Cards are documented separately under PUI.Card.

Import

use PUI
# or
import PUI.Container

Use header/1 for a page-level heading with an optional subtitle and actions:

<.header>
Dashboard
<:subtitle>Welcome back! Here's what's happening.</:subtitle>
<:actions>
<.button>New report</.button>
</:actions>
</.header>

The canonical Card module is PUI.Card. Existing qualified PUI.Container.card* calls remain available as deprecated compatibility wrappers.

API Reference

Header slots

Name Required Description
inner_block yes Page title
subtitle Supporting description
actions Right-aligned actions