All Projects → martinnov92 → React Splitters

martinnov92 / React Splitters

Licence: mit
React splitter component, written in TypeScript.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
es6
455 projects
js
455 projects
ts
41 projects

Projects that are alternatives of or similar to React Splitters

Yoshino
A themable React component library!Flexible Lightweight PC UI Components built on React! Anyone can generate easily all kinds of themes by it!
Stars: ✭ 216 (+70.08%)
Mutual labels:  component, react-components, react-component
React Planner
✏️ A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Stars: ✭ 846 (+566.14%)
Mutual labels:  component, react-component
React Structured Data
React Structured Data provides an easy way to add structured data to your React apps
Stars: ✭ 120 (-5.51%)
Mutual labels:  react-components, react-component
React Components
React components
Stars: ✭ 47 (-62.99%)
Mutual labels:  component, react-components
Base
React-UI-Kit - frontend library with ReactJS components
Stars: ✭ 18 (-85.83%)
Mutual labels:  react-components, react-component
Sparkline
Lightweight React sparklines ✨ 📈
Stars: ✭ 19 (-85.04%)
Mutual labels:  component, react-component
Hellobooks
A Single-Page Library Management App built with nodejs, express and react and redux
Stars: ✭ 37 (-70.87%)
Mutual labels:  component, react-components
Rsuite
🧱 A suite of React components .
Stars: ✭ 6,344 (+4895.28%)
Mutual labels:  component, react-components
Uskin
A front-end framework aims at developing web projects based on CSS3 and provides common components.
Stars: ✭ 74 (-41.73%)
Mutual labels:  component, react-component
Reactjs Popup
React Popup Component - Modals,Tooltips and Menus —  All in one
Stars: ✭ 1,211 (+853.54%)
Mutual labels:  component, react-component
React Cassette Player
Simple ReactJS HTML5 audio player component built with SVG icons from The Noun Project.
Stars: ✭ 93 (-26.77%)
Mutual labels:  react-components, react-component
Reactprimer
React component prototyping tool that generates fully connected class component code.
Stars: ✭ 743 (+485.04%)
Mutual labels:  component, react-component
Awesome React Components
Curated List of React Components & Libraries.
Stars: ✭ 28,626 (+22440.16%)
Mutual labels:  react-components, react-component
Ui Box
Blazing Fast React UI Primitive
Stars: ✭ 847 (+566.93%)
Mutual labels:  component, react-component
React Awesome Query Builder
User-friendly query builder for React
Stars: ✭ 682 (+437.01%)
Mutual labels:  react-components, react-component
React Absolute Grid
An absolutely positioned, animated, filterable, sortable, drag and droppable, ES6 grid for React.
Stars: ✭ 910 (+616.54%)
Mutual labels:  react-components, react-component
React Magnifier
🔍 React image zoom component
Stars: ✭ 116 (-8.66%)
Mutual labels:  component, react-component
Cp Design
A configurable Mobile UI Components(React hooks+Typescript+Scss)组件库
Stars: ✭ 465 (+266.14%)
Mutual labels:  component, react-components
React Scrollbars Custom
The best React custom scrollbars component
Stars: ✭ 576 (+353.54%)
Mutual labels:  component, react-component
React Xmasonry
Simple, minimalistic and featured native masonry layout for React JS.
Stars: ✭ 62 (-51.18%)
Mutual labels:  react-components, react-component

Splitters for React

v. 1.2.0

New version changes

v. 1.1.0

New version changes

  • fixed issue with getBoundingClientRect in React 16

NPM

Demo

Install: npm install --save m-react-splitters


Splitters for React has been written in TypeScript.

This splitter supports touch screens.

There are two options how the splitter can work. You can either select to resize splitters as you are holding and dragging the handlebar, or you can postponed the resize.

Splitters can be nested, but you have to specify what positions (vertical / horizontal) are they going to be and their sizes.

Left pane's (primary) width is calculated by JavaScript, the other panel's width is set by CSS.

Usage in your projects: Please import splitters like this:

import Splitter from 'm-react-splitters';
import 'm-react-splitters/lib/splitters.css';

Vertical splitter

primaryPaneMinWidth={number}
primaryPaneMaxWidth="string" (% or px)
primaryPaneWidth="string" (% or px)

Vertical splitter

primaryPaneMinWidth={number}
primaryPaneMaxWidth="string" (% or px)
primaryPaneWidth="string" (% or px)

Horizontal splitter

primaryPaneMinHeight={number}
primaryPaneMaxHeight="string" (% or px)
primaryPaneHeight="string" (% or px)

Another options for splitter are:

  • postPoned: Boolean

    • this specifies how the resize will work
    • default is false
  • className: string

  • primaryPaneClassName: string

  • secondaryPaneClassName: string

  • dispatchResize: Boolean

    • This dispatch resize event, it is meant for other components which resize on window resize

    • it's something like temporary callback function

    • Default is false

    • or you can use:

      onDragFinished: function

  • maximizedPrimaryPane: Boolean

  • minimalizedPrimaryPane: Boolean

<Splitter
    position="horizontal"
    primaryPaneMaxHeight="80%"
    primaryPaneMinHeight={0}
    primaryPaneHeight="400px"
    dispatchResize={true}
    postPoned={true}
>    
    <Splitter
        position="vertical"
        primaryPaneMaxWidth="80%"
        primaryPaneMinWidth={0}
        primaryPaneWidth="400px"
        postPoned={false}
    >    
        <div></div>
        <div></div>
    </Splitter> 
    <div></div>
</Splitter> 
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].