Component docs
Loading
import { PublicPage } from "@pixxl-tools/components";
// In Server Components:
import { PublicPage } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title (required) | PageHeaderProps["title"] | — | Title (any content). |
description | PageHeaderProps["description"] | — | Supporting text. |
actions | PageHeaderProps["actions"] | — | Action slot (buttons or links). |
bodyClassName | string | — | Class applied to the PageBody. |
bodyPadding | PageBodyProps["padding"] | none | PageBody padding. |
breadcrumbs | PageHeaderProps["breadcrumbs"] | — | Breadcrumb slot shown above the heading. |
containerClassName | string | — | Class applied to the inner Container. |
headingAs | PageHeaderProps["headingAs"] | — | — |
maxWidth | ContainerProps["maxWidth"] | lg | Container width. |
padding | PixxlPadding | lg | Inner spacing. |
titlerequiredPageHeaderProps["title"]
Title (any content).
descriptionPageHeaderProps["description"]
Supporting text.
actionsPageHeaderProps["actions"]
Action slot (buttons or links).
bodyClassNamestring
Class applied to the PageBody.
bodyPaddingdefault nonePageBodyProps["padding"]
PageBody padding.
breadcrumbsPageHeaderProps["breadcrumbs"]
Breadcrumb slot shown above the heading.
containerClassNamestring
Class applied to the inner Container.
headingAsPageHeaderProps["headingAs"]
maxWidthdefault lgContainerProps["maxWidth"]
Container width.
paddingdefault lgPixxlPadding
Inner spacing.
<PublicPage title="Public page" description="...">Body</PublicPage>