Component docs
Loading
import { AuthShell } from "@pixxl-tools/components";
// In Server Components:
import { AuthShell } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
actions | ReactNode | — | Action slot (buttons or links). |
as | "div" | "main" | main | main (default) or div for a preview inside a page that has a <main>. |
aside | ReactNode | — | — |
description | ReactNode | — | Supporting text. |
headingAs | "h1" | "h2" | "h3" | h1 | Title element: h1 (default) for the page; h2/h3 for a preview inside another page. |
titleReactNode
Title (any content).
actionsReactNode
Action slot (buttons or links).
asdefault main"div" | "main"
main (default) or div for a preview inside a page that has a <main>.
asideReactNode
descriptionReactNode
Supporting text.
headingAsdefault h1"h1" | "h2" | "h3"
Title element: h1 (default) for the page; h2/h3 for a preview inside another page.
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
Use shared form controls.
function LoginForm() {
return (
<FormField label="Email">
<TextField type="email" />
</FormField>
);
}
<AuthShell title="Sign in"><LoginForm /></AuthShell>