1.0.3 • Published 7 months ago

react-flyable-component v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React FlyAble Component

Version

This is a super simple React component that allows you to make any element flyable and Fixable.

Install

npm install react-flyable-component

yarn add react-flyable-component

Usage

Simply wrap any component with the FlyAble component and pass in the flyAble and fixed props.
There are two options for flyAble and fixed props.
Each option is functionally independent.

<FlyAble flyAble={true} fixed={false}>
    <ExampleComp />
</FlyAble>

Demo

flyAble : true

You can drag Component around the screen.

flyable-option.gif

fixed : true

You can fix Component on the screen.

fixed-option.gif