1.6.0 • Published 5 years ago

slide-in-panel v1.6.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Slide-in Panel Component

This component helps to implement “slide in/out on touch” feature for all devices with touch screens.

Props accepted :

  • Threshold - This prop helps to control the sensitivity of the touch drag on which the panel should slide in/out. Default is 40.
  • containerStyle - This prop allows to pass on styles to Container component, overwriting the default.
  • canvasStyle - This prop allows to pass on styles to Canvas component, overwriting the default.
  • panelStyle - This prop allows to pass on styles to Panel component, overwriting the default.
  • canvas - This is the component that is rendered as child component to Container.
  • panel - This is the component that is rendered as child component to Container and which slides in and out, on touch drag.

The default format of the canvas and panel may not suit all, you may fork the source code and edit style.css for Container component and get results of your preference.

Also in the github repository you’ll find a use-case demo.

Live demo

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago