Component docs
Loading
import { DashboardShell } from "@pixxl-tools/components";
// In Server Components:
import { DashboardShell } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
sidebar | ReactNode | — | — |
title | ReactNode | — | Title (any content). |
actions | ReactNode | — | Action slot (buttons or links). |
density | PixxlDensity | — | — |
footer | ReactNode | — | Footer slot. |
mainAs | "div" | "main" | main | Element of the content area: main (default) or div for previews. |
sidebarReactNode
titleReactNode
Title (any content).
actionsReactNode
Action slot (buttons or links).
densityPixxlDensity
footerReactNode
Footer slot.
mainAsdefault main"div" | "main"
Element of the content area: main (default) or div for previews.
const nav = <SideNav items={[{ id: "home", label: "Home", href: "/" }]} />;
<DashboardShell title="Dashboard" sidebar={nav}>...</DashboardShell>