nf-resizable-panels
Resizable panels with horizontal/vertical layouts, minimum sizes and local caching.
Import the components below; see the package README for standalone installation.
Examples
Basic usage
Loading example…
Basic usage
More examples 2
Loading example…
More examples 2
More examples 3
Loading example…
More examples 3
Props
Text props follow the library language when omitted; defaults below use this language.
| Parameter | Description | Type | Options | Default |
|---|---|---|---|---|
resizablePanelsContainerTag | Container tag. | string | — | 'div' |
seperatorSize | Separator width in pixels; 0 uses the theme default. | number | — | 0 |
fillSeperator | Fill the separator; shown on hover in border mode. | boolean | — | false |
dragDirection | Drag direction: row is horizontal, column is vertical. | string | row / column | 'row' |
resizeMinWidth | Minimum resize dimension: width for row, height for column. | number | — | 0 |
symbolMode | Separator symbol or border mode. | string | symbol / border | 'symbol' |
seperatorPosition | Separator position. | string | start / end / center | 'start' |
unique | Cache identifier; use a different value for each layout. | string | — | 'resiable-panel-child' |
divideType | Resize via flex-basis or width/height. | string | flex / calc | 'calc' |
cached | Cache panel sizes after dragging. | boolean | — | false |
Events
| Event | Description | Payload |
|---|---|---|
resize | Fires on drag release and after keyboard resizing. | — |
Slots
| Parameter | Description | Payload |
|---|---|---|
default | Direct child panels; give them initial dimensions or flex. | — |
seperator-symbol | Custom separator symbol. | — |
Methods
| Name | Type | Description |
|---|---|---|
refresh() | void | Recollect panels and read compatible cache. |
Migration notes
Legacy seperator* spellings and the nf-resizable-panels-${unique} key are preserved. Cache restores only when panel count matches and total size differs by at most 4px. Arrow keys resize by 10px, Shift+Arrow by 1px. Drag listeners are cleaned up.
