Component docs
Loading
import { ToolStylesPanel } from "@pixxl-tools/components";
// In Server Components:
import { ToolStylesPanel } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
model (required) | ToolStylesModel | — | — |
labels | Partial<ToolStylesLabels> | — | Text overrides (default from the toolStylesPanel catalog). |
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | — | Level of each section title's heading (1–6, default 3): one below the heading of the panel or page around it, so the outline has no gaps. |
modelrequiredToolStylesModel
labelsPartial<ToolStylesLabels>
Text overrides (default from the toolStylesPanel catalog).
headingLevel1 | 2 | 3 | 4 | 5 | 6
Level of each section title's heading (1–6, default 3): one below the heading of the panel or page around it, so the outline has no gaps.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<ToolStylesPanel
labels={{ noStyleControls: "No style controls" }}
model={{
sections: [
{
fields: [
{ checked: true, id: "visible", kind: "checkbox", label: "Visible", onCommit: (checked) => console.log(checked) },
],
id: "display",
title: "Display",
},
],
}}
/>