import { SettingsSection } from "@pixxl-tools/components";
// In Server Components:
import { SettingsSection } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
actions | ReactNode | — | Action slot (buttons or links). |
align | "center" | "start" | start | Header alignment of the section variant (default start). |
description | ReactNode | — | Supporting text. |
eyebrow | ReactNode | — | Small label above the title (marketing sections). |
padding | PixxlPadding | — | Inner spacing. |
titleId | string | ${id}-title | id of the <h2> title (default ${id}-title when the section has an id). With a title id the section is aria-labelledby its heading — a named region landmark, also for code-formatted titles — unless you pass aria-label / aria-labelledby yourself. |
titleSize | "sm" | "md" | "lg" | "xl" | — | Size of the <h2> title (Heading sizes). Default: xl for the section variant (lg-ish 2xl text inside a PublicPage, so it stays below the page's h1) and sm for card. |
variant | PageSectionVariant | — | Emphasis (solid, secondary, soft, outline, ghost). |
titleReactNode
Title (any content).
actionsReactNode
Action slot (buttons or links).
aligndefault start"center" | "start"
Header alignment of the section variant (default start).
descriptionReactNode
Supporting text.
eyebrowReactNode
Small label above the title (marketing sections).
paddingPixxlPadding
Inner spacing.
titleIddefault ${id}-titlestring
id of the <h2> title (default ${id}-title when the section has an id). With a title id the section is aria-labelledby its heading — a named region landmark, also for code-formatted titles — unless you pass aria-label / aria-labelledby yourself.
titleSize"sm" | "md" | "lg" | "xl"
Size of the <h2> title (Heading sizes). Default: xl for the section variant (lg-ish 2xl text inside a PublicPage, so it stays below the page's h1) and sm for card.
variantPageSectionVariant
Emphasis (solid, secondary, soft, outline, ghost).
<SettingsSection title="Notifications" />