New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-slide-pane

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slide-pane

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![Codepen Preview](https://img.shields.io/badge/codepen-preview-brightgreen.svg)](https://codepen.io/turkyden/pen/ExKOmqV) [

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

React Slide Pane

Commitizen friendly Codepen Preview lerna

Split-Pane React component, can be nested or split vertically or horizontally and diff image!

Preview in storybook →

React Slide Pane Demo

Usage

Edit ReactSlidePane

import React from 'react'
import ReactDOM from 'react-dom'
import SlidePane from 'react-slide-pane'

ReactDOM.render(
  <>
    <SlidePane width={600} height={400} split="vertical" initial="200px">
      <img src="https://jdc.jd.com/img/600x400?text=1" />
      <img src="https://jdc.jd.com/img/600x400?text=2" />
    </SlidePane>
  </>,
  mountNode
)

API

NameTypeDefaultDescription
widthnumber600The width of pane conmponent
heightnumber400The height of pane conmponent
initialnumber / string200The initial position of resizer
splitstringverticalIf split is equal to horizontally, the resizer will be horizontally.
childrenReact.ElementundefiedThe children of slide pane coms

Reference

react-split-pane

react-component/slider

react-split-pane-v2

Keywords

react

FAQs

Package last updated on 09 Oct 2020

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