Skip to content
Menus & Navigation

Resizable

Draggable split panes for resizable layouts.

Import

tsx
import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from "@cronus-ui/ui";
bash
npx cronus-ui add resizable

Examples

.cronus

The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.

PortedParity: MatchGeometry 1/1Pixel diff 0 pxLogic 1/1Parity scoreboard
default.cronus
app "audit-fixtures" {
  port 5176
}

style {
  preset aurora
  theme dark
}

component ResizableDefault layout:inline style:resizable {
  aria-label:"Panels"
  label "Panels"
  text "One"
  text "Two"
}

page "/audit/resizable/default" type:custom {
  use ResizableDefault
}

API Reference

Generated from the component's exported types.

ResizableHandleProps

Extends ComponentProps<typeof ResizablePrimitiveHandle>

Skip ResizableHandleProps props table
PropTypeDefaultDescription
withHandle
booleanfalseRender a centered grip affordance on the divider. Defaults to `false`.

ResizablePanelGroupProps

Extends ComponentProps<typeof ResizablePrimitivePanelGroup>

Skip ResizablePanelGroupProps props table
PropTypeDefaultDescription
direction
"horizontal" | "vertical"——
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

ResizablePanelProps

Extends ComponentProps<typeof ResizablePrimitivePanel>

Skip ResizablePanelProps props table
PropTypeDefaultDescription
defaultSize
number——
minSize
number——
maxSize
number——
collapsible
boolean——
children
ReactNode—Contents of the component.