1.0.10 • Published 6 months ago

@synerise/ds-panels-resizer v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
6 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

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.10

6 months ago

0.2.4

8 months ago

0.2.3

9 months ago

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

11 months ago

0.1.0

12 months ago

0.0.1

12 months ago