Import
tsx
import { Resizable } from "@indoku/ui"Examples
Basic usage
One
Two
Three
tsx
Props
Panel
| Prop | Type | Default | Description |
|---|---|---|---|
defaultSize | number | – | Percent (0–100). Panels without a defaultSize share the remaining space equally. |
minSize | number | – | |
maxSize | number | – |
PanelGroup
| Prop | Type | Default | Description |
|---|---|---|---|
direction | Direction | – | |
onLayout | (sizes: number[]) => void | – | Called whenever sizes change (array of percents, in panel order). |
Handle
| Prop | Type | Default | Description |
|---|---|---|---|
withHandle | boolean | – | Show a small grip in the middle of the line. |
step | number | 5 | Keyboard step in percent. |
* required. Style props and HTML attributes are accepted as well.
Created by @indokudev