Resizable

Drag to resize panels; sketch handle on the divider.

Panel A
Panel B
<ResizablePanelGroup direction="horizontal">
  <ResizablePanel defaultSize={50}>A</ResizablePanel>
  <ResizableHandle />
  <ResizablePanel defaultSize={50}>B</ResizablePanel>
</ResizablePanelGroup>

CLI install

npx doodleui-react add resizable

Usage

import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from "doodleui-react";

<ResizablePanelGroup direction="horizontal">\n  <ResizablePanel defaultSize={50} />\n  <ResizableHandle />\n  <ResizablePanel defaultSize={50} />\n</ResizablePanelGroup>

Props

PropTypeDefaultNotes
withHandlebooleantrueSketchy grip on ResizableHandle.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.