For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Resizable

Accessible resizable panel groups and layouts with keyboard support.

One
Two
import {
  ResizableHandle,
  ResizablePanel,
  ResizablePanelGroup,
} from "@/components/resizable/resizable";

Installation

$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/resizable.json

Usage

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

Composition

Use the following composition to build a Resizable:

ResizablePanelGroup
├── ResizablePanel
├── ResizableHandle
└── ResizablePanel

RTL

To enable right-to-left support, see the RTL guide.

واحد
اثنان
ثلاثة
"use client";

import * as React from "react";

import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";

API Reference

See the react-resizable-panels documentation for the full API reference.