Component docs
Loading
import { Section } from "@pixxl-tools/components";
// In Server Components:
import { Section } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
padding | SurfacePadding | — | Inner spacing. |
title | ReactNode | — | Title (any content). |
variant | SurfaceVariant | — | Emphasis (solid, secondary, soft, outline, ghost). |
actions | ReactNode | — | Action slot (buttons or links). |
description | ReactNode | — | Supporting text. |
footer | ReactNode | — | Footer slot. |
paddingSurfacePadding
Inner spacing.
titleReactNode
Title (any content).
variantSurfaceVariant
Emphasis (solid, secondary, soft, outline, ghost).
actionsReactNode
Action slot (buttons or links).
descriptionReactNode
Supporting text.
footerReactNode
Footer slot.
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
Complex object props use fixed fixtures. Primitive props stay editable.
<Section title="Export" padding="md" variant="solid">Settings</Section><Section title="Export">Settings</Section><Section title="Export" padding="md" variant="solid">Settings</Section>