Componentes
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Resizable
Accessible resizable panel groups and layouts with keyboard support.
Left
Right
About#
The Resizable component is built on top of react-resizable-panels by bvaughn.
Installation#
pnpm add @ag/uiUsage#
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@ag/ui"<ResizablePanelGroup orientation="horizontal">
<ResizablePanel>One</ResizablePanel>
<ResizableHandle />
<ResizablePanel>Two</ResizablePanel>
</ResizablePanelGroup>Composition#
Use the following composition to build a ResizablePanelGroup:
ResizablePanelGroup
├── ResizablePanel
├── ResizableHandle
└── ResizablePanelExamples#
Vertical#
Use orientation="vertical" for vertical resizing.
Handle#
Use the withHandle prop on ResizableHandle to show a visible handle.
RTL#
To enable RTL support in shadcn/ui, see the RTL configuration guide.
API Reference#
See the react-resizable-panels documentation.