"use client";
import { ResponsiveInspectorPanel } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
breakpoint | "lg" | "md" | "sm" | md | Width from which the panel is an inline side panel (default md, 768 px). |
closeLabel | string | from the message catalog | Accessible name of the close button (default from the message catalog). |
collapsed | boolean | — | Large screens: collapse toggle. |
collapsible | boolean | — | Large screens: a header button collapses the body. |
defaultCollapsed | boolean | — | Large screens: collapse toggle. |
defaultOpen | boolean | — | Initial open state when uncontrolled. |
defaultSnapPoint | number | 0 | Snap point index the sheet first opens at (default 0, the smallest). |
footer | ReactNode | — | Footer slot. |
modal | boolean | false | Small screens: whether the sheet / drawer is modal (default false). Non-modal, the rest of the page (a canvas, its toolbar) stays usable and undimmed and taps there do not close the panel (close button, Escape or dragging the sheet down do) — an inspector is edited while its subject is watched. true dims the page, traps focus and closes on a backdrop tap. |
titleReactNode
Title (any content).
breakpointdefault md"lg" | "md" | "sm"
Width from which the panel is an inline side panel (default md, 768 px).
closeLabeldefault from the message catalogstring
Accessible name of the close button (default from the message catalog).
collapsedboolean
Large screens: collapse toggle.
collapsibleboolean
Large screens: a header button collapses the body.
defaultCollapsedboolean
Large screens: collapse toggle.
defaultOpenboolean
Initial open state when uncontrolled.
defaultSnapPointdefault 0number
Snap point index the sheet first opens at (default 0, the smallest).
footerReactNode
Footer slot.
modaldefault falseboolean
Small screens: whether the sheet / drawer is modal (default false). Non-modal, the rest of the page (a canvas, its toolbar) stays usable and undimmed and taps there do not close the panel (close button, Escape or dragging the sheet down do) — an inspector is edited while its subject is watched. true dims the page, traps focus and closes on a backdrop tap.
Side panel from 768 px; a bottom sheet with a trigger below.
const controls = <Slider aria-label="Count" defaultValue={40} />;
<ResponsiveInspectorPanel title="Particles" collapsible>{controls}</ResponsiveInspectorPanel>