Search documentation

Search the documentation and open a page.

Accessible resizable panel groups and layouts with keyboard support.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/resizable

Composition

Resizable ├── ResizablePanel ├── ResizableResizeTrigger └── ResizablePanel

Examples

Collapsible

Loading...

Controlled

Loading...

Default

Loading...

Disabled

Loading...

Size Constraints

Loading...

Vertical

Loading...

With Handle

Loading...

API Reference

Resizable

PropTypeDefaultDescription
idstring | undefined—Unique identifier used to connect the component parts.
orientation"horizontal" | "vertical" | undefined"horizontal"Sets the component orientation and keyboard navigation axis.
sizePanelSize[] | undefined—Configures size.
defaultSizePanelSize[] | undefined—Configures default size.
onResize((details: ResizeDetails) => void) | undefined—Runs when resize changes.
onResizeStart(() => void) | undefined—Runs when resize start changes.
onResizeEnd((details: ResizeEndDetails) => void) | undefined—Runs when resize end changes.
idsElementIds | undefined—Overrides generated identifiers for individual parts.
keyboardResizeBynumber | null | undefined—Configures keyboard resize by.
noncestring | undefined—Configures nonce.
onCollapse((details: ExpandCollapseDetails) => void) | undefined—Runs when collapse changes.
onExpand((details: ExpandCollapseDetails) => void) | undefined—Runs when expand changes.
registrySplitterRegistry | undefined—Configures registry.

Context, Hooks, and Types

ExportAPI
useSplitterCreates or accesses the component API.
useSplitterContextReturns the nearest component API.