Component docs
Loading
import { InspectorPanel } from "@pixxl-tools/components";
// In Server Components:
import { InspectorPanel } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
footer | ReactNode | — | Footer slot. |
title | ReactNode | — | Title (any content). |
padding | "none" | "sm" | "md" | "lg" | md | Inner spacing. |
footerReactNode
Footer slot.
titleReactNode
Title (any content).
paddingdefault md"none" | "sm" | "md" | "lg"
Inner spacing.
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
const actions = <Button size="sm">Reset</Button>;
const controls = <Slider aria-label="Count" defaultValue={40} />;
<InspectorPanel title="Particles" footer={actions}>{controls}</InspectorPanel>