React Collapse Pane

screenshot of React Collapse Pane
react
styled-components

The splittable, draggable, collapsible panel layout library

Overview

React-collapse-pane is a React library that provides a simple and elegant solution for adding splittable, draggable, and collapsible panes to your React application. It aims to be reliable and configurable, allowing you to easily create layouts with collapsible panels.

Features

  • Splittable, draggable, and collapsible panes
  • Support for vertical and horizontal split orientations
  • Ability to exclude specific children from being split or displayed
  • Customizable styling for the resizer, buttons, and animations
  • RTL (right-to-left) support

MUI v5 Peer Dependency

Since the upgrade to MUI v5, react-collapse-pane requires a peer dependency style engine. You can choose between styled components and emotion. Follow the appropriate configuration guide based on your choice:

  • If you want to use the default style engine, follow the installation guide here.
  • If you want to use styled components, follow the configuration guide here.

Please note that this dependency will be removed in future versions to reduce the size of the library.

Summary

React-collapse-pane is a reliable and configurable React library that allows you to easily create splittable, draggable, and collapsible panes in your React application. It provides customizable styling options, support for both vertical and horizontal splits, and the ability to exclude specific children from the split. The library also supports RTL (right-to-left) layouts and is compatible with MUI v5. With its simplicity and elegance, react-collapse-pane is a great choice for achieving flexible and customizable layouts in your React projects.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

styled-components
Styled Components

Styled Components is a popular library for styling React components using CSS syntax. It allows you to write CSS in your JavaScript code, making it easier to create dynamic styles that are specific to each component.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.