Skip to Content
Skip to content

Resizable

Neumorphic resizable panels on react-resizable-panels. The handle is the engraved separator line with a small raised grip.

One
Two
Three

Installation

bunx --bun shadcn@latest add https://neu.beyondtheinnovation.com/r/neu-resizable.json

Usage

import {
  ResizableHandle,
  ResizablePanel,
  ResizablePanelGroup,
} from "@/components/ui/neu/resizable"
<ResizablePanelGroup orientation="horizontal">
  <ResizablePanel>One</ResizablePanel>
  <ResizableHandle withHandle />
  <ResizablePanel>Two</ResizablePanel>
</ResizablePanelGroup>

Vertical

Use orientation="vertical" on the group; the handle line and grip turn with it.

<ResizablePanelGroup orientation="vertical">

Leave out withHandle for the bare line. The handle takes keyboard focus and resizes with the arrow keys.

On this page