sigilUI

Resizable Panel Group

Arrange panels with draggable resize handles.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { ResizablePanelGroup, ResizablePanel, Center, ResizableHandle } from "@sigil-ui/components";

Usage

<ResizablePanelGroup orientation="horizontal" className="min-h-[calc(var(--s-grid-cell)*5)] w-full border border-[var(--s-border)]"><ResizablePanel><Center className="h-full">Editor</Center></ResizablePanel><ResizableHandle withHandle /><ResizablePanel><Center className="h-full">Preview</Center></ResizablePanel></ResizablePanelGroup>

Sub-components

This component includes the following parts:

  • <ResizablePanel>
  • <ResizableHandle>

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the panel layout.
childrenReactNode—Panels separated by resize handles.

Token integration

CSS VariablePurpose
--s-borderBorder
--s-duration-fastDuration fast
--s-primaryPrimary
--s-ringRing
--s-radius-smRadius sm
--s-surfaceSurface
--s-text-mutedText muted