shadcn-solid
DocsComponentsCharts


Get Started
  • Introduction
  • Installation
  • Theming
  • Dark Mode
Form
  • Tanstack Form
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Badge
  • Breadcrumbs
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • File Field
  • Hover Card
  • Kbd
  • Menubar
  • Navigation Menu
  • Number Field
  • OTP Field
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Search
  • Segmented Control
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Switch
  • Table
  • Tabs
  • Text Field
  • Toggle Group
  • Toggle Button
  • Tooltip

Resizable

A component that divides your interface into resizable sections.

Docs API Reference

Component resizable-demo not found in registry.

Installation

Copy and paste the following code into your project:

Usage

import {
  Resizable,
  ResizableHandle,
  ResizablePanel,
} from "@components/ui/resizable"
<Resizable>
  <ResizablePanel />
  <ResizableHandle />
  <ResizablePanel />
</Resizable>

Examples

Orientation

Use the orientation prop to set the direction of the resizable panels.

Component resizable-orientation-demo not found in registry.

import {
  Resizable,
  ResizableHandle,
  ResizablePanel,
} from "@/components/ui/resizable"
 
export default function Example() {
  return (
    <Resizable orientation="vertical">
      <ResizablePanel>One</ResizablePanel>
      <ResizableHandle />
      <ResizablePanel>Two</ResizablePanel>
    </Resizable>
  )
}

With Handle

You can set or hide the handle by using the withHandle prop on the ResizableHandle component.

Component resizable-with-handle-demo not found in registry.

import {
  Resizable,
  ResizableHandle,
  ResizablePanel,
} from "@/components/ui/resizable"
 
export default function Example() {
  return (
    <Resizable>
      <ResizablePanel>One</ResizablePanel>
      <ResizableHandle withHandle />
      <ResizablePanel>Two</ResizablePanel>
    </Resizable>
  )
}
Radio GroupSearch
Built & designed by shadcn. Ported to Solid by hngngn. The source code is available on GitHub.