Layout
PageShell
The standard page container with a title, a description and an actions slot.
<script>
import { PageShell, Button } from "@codeatlasdev/ui";
</script>
<PageShell title="Dashboard" description="Overview of this month">
{#snippet actions()}<Button size="sm">New report</Button>{/snippet}
<!-- page content -->
</PageShell>
Below 900px the header stacks: the description leads and actions wrap onto their own row. Labeled buttons share that row full-width (large tap targets); icon-only controls (IconButton, ThemeToggle) keep their natural size and stay at the end of the row.
Inside a PageShell, EmptyState titles default to <h2> (under the page <h1>). Pass headingLevel to EmptyState or GlassCard to pick the level explicitly.
Dashboard page
KPI cards and a content card inside a PageShell.
Revenue
$118k
↑+23.4%Users
24.8k
↑+8.1%Growth
34%
↑+5.6%Uptime
99.9%
↑+0.1%Chart or data table goes here
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | – | Page title. |
description | string | – | Supporting text under the title. |
gap | number | 28 | Vertical gap between the header and the content, in px. |
maxWidth | string | '1280px' | Maximum width of the content column. |
actions | Snippet | – | Right side of the page header. |
children | Snippet | – | Page content. |
class | string | '' | Extra class names. |