Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnwatkins0/react-draggable-splitscreen

A React component for displaying overlapping elements with a draggable splitscreen-like effect.
https://github.com/johnwatkins0/react-draggable-splitscreen

react react-hooks styled-components typescript

Last synced: 2 months ago
JSON representation

A React component for displaying overlapping elements with a draggable splitscreen-like effect.

Awesome Lists containing this project

README

        

# react-draggable-splitscreen

A React component for displaying overlapping elements with a draggable splitscreen-like effect. See examples [here](https://johnwatkins0.github.io/react-draggable-splitscreen/).

## Install

```
npm install react-draggable-splitscreen
```

## Usage

The component takes two props, `leftSide` and `rightSide`, both of which must be rendered React elements/components.

```Javascript
import * as React from 'react';
import Splitscreen from 'react-draggable-splitscreen';

const MyLeftSide = () => ;
const MyRightSide = () => ;

const MyElement = () => } rightSide={} />
```