Component docs
Loading
import { ResourcePage } from "@pixxl-tools/components";
// In Server Components:
import { ResourcePage } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
toolbar | ReactNode | — | — |
actions | ReactNode | — | Action slot (buttons or links). |
breadcrumbs | ReactNode | — | — |
description | ReactNode | — | Supporting text. |
detail | ReactNode | — | — |
empty | ReactNode | — | — |
headingAs | "h1" | "h2" | "h3" | h1 | Title element: h1 (default) for the page; h2/h3 for a preview inside another page. |
padding | PixxlPadding | — | Inner spacing. |
sidebar | ReactNode | — | — |
titleReactNode
Title (any content).
toolbarReactNode
actionsReactNode
Action slot (buttons or links).
breadcrumbsReactNode
descriptionReactNode
Supporting text.
detailReactNode
emptyReactNode
headingAsdefault h1"h1" | "h2" | "h3"
Title element: h1 (default) for the page; h2/h3 for a preview inside another page.
paddingPixxlPadding
Inner spacing.
sidebarReactNode
const filters = <SearchField aria-label="Search projects" />;
<ResourcePage title="Projects" toolbar={filters}>...</ResourcePage>