npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-pane-system

v0.3.3

Published

A declarative, flexible pane layout system for React projects.

Downloads

13

Readme

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

| Prop | Type | Description | | ----------- | ------- | ------------------------------------------------------------------------------------------------------- | | width | string? | Width of the pane system. Can be any CSS string. (Default: 100%) | | height | string? | Height of the pane system. Can be any CSS string. (Default: 100%) | | bgColor | string? | Base background color for all the Panes. Can be any CSS color string. (Default: #4b5563) | | borderWidth | number? | Base border width for all the PaneRows and Panes. (Default: 1) | | borderColor | string? | Base border color for all the PaneRows and Panes. Can be any CSS color string. (Default: #909090) |

PaneRow

| Prop | Type | Description | | -------------- | ------- | ------------------------------------------------------------------------------------------------------- | | height | string? | Height of the row. Can be either px or %. Only one row can have an auto height. (Default: auto) | | minHeight | string? | Minimum height of the row. Can be either px or %. (Default: 0) | | maxHeight | string? | Maximum height of the row. Can be either px or %. (Default: 100%) | | splitter | string? | Position of the splitter. Can be either top or bottom. | | splitterHeight | number? | Height of the splitter. (Default: 4) | | splitterColor | string? | Color of the splitter. Can be any CSS color string. (Default: rgba(0, 0, 0, 0.2)) | | bgColor | string? | Overrides the base background color for all the enclosed Panes. Can be any CSS color string. | | borderWidth | number? | Overrides the base border width for all the enclosed Panes. | | borderColor | string? | Overrides the base border color for all the enclosed Panes. Can be any CSS color string. |

Pane

| Prop | Type | Description | | ------------- | ------- | ------------------------------------------------------------------------------------------------------- | | id | string | ID of the pane. | | width | string? | Width of the pane. Can be either px or %. Only one pane can have an auto width. (Default: auto) | | minWidth | string? | Minimum width of the pane. Can be either px or %. (Default: 0) | | maxWidth | string? | Maximum width of the pane. Can be either px or %. (Default: 100%) | | splitter | string? | Position of the splitter. Can be either left or right. | | splitterWidth | number? | Width of the splitter. (Default: 4) | | splitterColor | string? | Color of the splitter. Can be any CSS color string. (Default: rgba(0, 0, 0, 0.2)) | | bgColor | string? | Overrides the base background color for this pane. Can be any CSS color string. | | borderWidth | number? | Overrides the base border width for this pane. | | borderColor | string? | Overrides the base border color for this pane. Can be any CSS color string. |