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>
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. |