Socket
Book a DemoInstallSign in
Socket

react-pane-system

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pane-system

A declarative, flexible pane layout system for React projects.

latest
Source
npmnpm
Version
0.5.6
Version published
Maintainers
2
Created
Source

react-pane-system

A declarative, flexible pane layout system for React projects. Allows pixel and percent values to sizes(including min and max).

View Storybook

Install

> npm install react-pane-system

Usage

import { PaneSystem, PaneRow, Pane } from 'react-pane-system';

<PaneSystem width="100vw" height="100vh">
  <PaneRow>
    {/* A pane with a splitter on the right side */}
    <Pane
      id="left-pane"
      width="30%"
      minWidth="100px"
      maxWidth="50%"
      splitter="right"
    >
      <div>Left Pane</div>
    </Pane>

    {/* This pane resizes automatically */}
    <Pane id="right-pane">
      <div>Right Pane</div>
    </Pane>
  </PaneRow>
</PaneSystem>;

Documentation

PaneSystem

PropTypeDescription
widthstring?Width of the pane system. Can be any CSS string. (Default: 100%)
heightstring?Height of the pane system. Can be any CSS string. (Default: 100%)
bgColorstring?Base background color for all the Panes. Can be any CSS color string. (Default: #4b5563)
borderWidthnumber?Base border width for all the PaneRows and Panes. (Default: 1)
borderColorstring?Base border color for all the PaneRows and Panes. Can be any CSS color string. (Default: #909090)

PaneRow

PropTypeDescription
heightstring?Height of the row. Can be either px or %. Only one row can have an auto height. (Default: auto)
minHeightstring?Minimum height of the row. Can be either px or %. (Default: 0)
maxHeightstring?Maximum height of the row. Can be either px or %. (Default: 100%)
splitterstring?Position of the splitter. Can be either top or bottom.
splitterHeightnumber?Height of the splitter. (Default: 4)
splitterColorstring?Color of the splitter. Can be any CSS color string. (Default: rgba(0, 0, 0, 0.2))
bgColorstring?Overrides the base background color for all the enclosed Panes. Can be any CSS color string.
borderWidthnumber?Overrides the base border width for all the enclosed Panes.
borderColorstring?Overrides the base border color for all the enclosed Panes. Can be any CSS color string.

Pane

PropTypeDescription
idstringID of the pane.
widthstring?Width of the pane. Can be either px or %. Only one pane can have an auto width. (Default: auto)
minWidthstring?Minimum width of the pane. Can be either px or %. (Default: 0)
maxWidthstring?Maximum width of the pane. Can be either px or %. (Default: 100%)
splitterstring?Position of the splitter. Can be either left or right.
splitterWidthnumber?Width of the splitter. (Default: 4)
splitterColorstring?Color of the splitter. Can be any CSS color string. (Default: rgba(0, 0, 0, 0.2))
bgColorstring?Overrides the base background color for this pane. Can be any CSS color string.
borderWidthnumber?Overrides the base border width for this pane.
borderColorstring?Overrides the base border color for this pane. Can be any CSS color string.

FAQs

Package last updated on 03 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts