1.0.10 • Published 1 month ago
@synerise/ds-panels-resizer v1.0.10
id: panels-resizer
title: PanelResizer
The PanelsResizer
component allows you to create a layout with resizable left and right panels, separated by a draggable resizer.
Users can adjust the width of the panels by dragging the resizer, providing a flexible and customizable interface.
Installation
npm i @synerise/ds-panels-resizer
or
yarn add @synerise/ds-panels-resizer
Usage
import { PanelsResizer } from '@synerise/ds-panels-resizer';
const App = () => (
<div style={{ width: '100%', height: '680px' }}>
<PanelsResizer
leftPanel={<div>Left Panel Content</div>}
rightPanel={<div>Right Panel Content</div>}
/>
</div>
);
Demo
API
Property | Description | Type | Default |
---|---|---|---|
leftPanel | The content to display in the left panel. | React.ReactNode | --- |
rightPanel | The content to display in the right panel. | React.ReactNode | --- |
initial | Initial widths of the panels. Can specify leftPanel or rightPanel width in pixels. | { leftPanel: number } | { rightPanel: number } | --- |
scrollable | Whether the panels should be scrollable when their content overflows. | boolean | false |
1.0.2
4 months ago
1.0.1
4 months ago
1.0.0
4 months ago
1.0.9
2 months ago
1.0.8
2 months ago
1.0.7
2 months ago
1.0.6
3 months ago
1.0.5
3 months ago
1.0.4
3 months ago
1.0.3
3 months ago
1.0.10
1 month ago
0.2.4
4 months ago
0.2.3
4 months ago
0.2.2
5 months ago
0.2.1
5 months ago
0.2.0
5 months ago
0.1.4
6 months ago
0.1.3
6 months ago
0.1.2
6 months ago
0.1.1
7 months ago
0.1.0
7 months ago
0.0.1
7 months ago