Shadcn Resizable Components

Split panels that people resize by dragging or with the keyboard, with min and max sizes, collapsible icon rails, nested layouts, and saved layouts. Built on ui-sdk and styled with shadcn/ui theme tokens. Browse our collection of 15 Shadcn Resizable variants.

Horizontal

Sidebar
Content

Vertical

Header
Content

Nested

One
Two
Three

With grip handle

Sidebar
Editor
Console

Animated pill handle

Navigation
Toolbar
Workspace

Min and max sizes

Docs180px
  • Getting started
  • Installation
  • Theming
  • Components
Getting started

The navigation stays between 140px and 240px wide.

Collapsible icon rail

Drag the divider past the minimum, double click it, or focus it and press Enter to collapse the navigation to an icon rail.

Keyboard resizing

Original50%
Changes50%
  • ←→Move 5%
  • Shift←Move 25%
  • HomeEndMin or max
  • EnterCollapse

Persisted layout

Outline
  • Introduction
  • Installation
  • Usage
  • API reference
Introduction

Resize the outline, then reload the page. The layout is saved in local storage.

Controlled sizes

25 / 75
Preview
Properties

Size tracking

Files0%
Editor0%
Preview0%

Lock layout

PinnedFixed divider
Inbox3 unread
MessageFrom Ava Chen

Code editor

Explorer
  • app
  • layout.tsx
  • page.tsx
  • components
  • header.tsx
  • pricing-card.tsx
  • package.json
  • README.md
page.tsx
1import { Header } from "@/components/header"
2import { PricingCard } from "@/components/pricing-card"
3
4export default function Page() {
5 return (
6 <main className="container">
7 <Header />
8 <PricingCard plan="pro" />
9 </main>
10 )
11}
Terminal
$ pnpm dev
▲ Next.js 16.0.0
- Local: http://localhost:3000
✓ Ready in 1.2s
✓ Compiled /page in 312ms
IDE layout

Mail client

Inbox4 new
AC
Q4 roadmap reviewAva Chen
9:42 AM

I pulled together the open items for the roadmap review on Thursday. Can you take a look at the pricing section before then?

Thanks, Ava

Mail client

Dashboard with sidebar

N
Northwind
Overview
Revenue$48,295+12.4% from last month
Orders1,284+8.1% from last month
Customers3,912+4.6% from last month
Traffic sources
Organic search
46%
Direct
28%
Social
17%
Email
9%
Recent orders
OrderCustomerStatusTotal
#3210Ava ChenPaid$249.00
#3209Marcus WebbPending$89.50
#3208Priya PatelPaid$1,120.00
#3207Leo MartinsRefunded$59.00
#3206Sofia RossiPaid$420.00
Admin dashboard
Unlock premium components
Get full control of shadcn/ui components, blocks and instances, including future additions.

Explore Shadcn Blocks

Ready-made page sections built with the same components.

View all blocks