1.0.10 • Published 3 months ago

@synerise/ds-panels-resizer v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

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

PropertyDescriptionTypeDefault
leftPanelThe content to display in the left panel.React.ReactNode---
rightPanelThe content to display in the right panel.React.ReactNode---
initialInitial widths of the panels. Can specify leftPanel or rightPanel width in pixels.{ leftPanel: number } | { rightPanel: number }---
scrollableWhether the panels should be scrollable when their content overflows.booleanfalse
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.10

3 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

9 months ago

0.0.1

9 months ago