Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rmc-drawer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-drawer

drawer ui component for react

  • 0.4.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rmc-drawer


React Drawer Component

NPM version build status Test coverage gemnasium deps npm download

Screenshots

Development

npm install
npm start

Example

http://localhost:8099/examples/

online example: http://react-component.github.io/m-drawer/

install

rmc-drawer

Usage

var Drawer = require('rmc-drawer');
var React = require('react');
React.render(<Drawer />, container);

API

props

Property nameDescriptionTypeDefault
classNameadditional css class of root dom nodeString''
prefixClsprefix classString'rmc-drawer'
childrenThe main contentanyn/a
stylecontainer styles.Object
sidebarStyleInline styles.Object{}
contentStyleInline styles.Object{}
overlayStyleInline styles.Object{}
dragHandleStyleInline styles.Object{}
sidebarThe sidebar contentanyn/a
onOpenChangeCallback called when the sidebar wants to change the open prop. Happens after sliding the sidebar and when the overlay is clicked when the sidebar is open.Functionn/a
openIf the sidebar should be openBooleanfalse
positionwhere to place the sidebarString'left', enum{'left', 'right', 'top', 'bottom'}
dockedIf the sidebar should be docked in documentBooleanfalse
transitionsIf transitions should be enabledBooleantrue
touchIf touch gestures should be enabledBooleantrue
enableDragHandleIf dragHandle should be enabledBooleantrue
dragToggleDistanceDistance the sidebar has to be dragged before it will open/close after it is released.Number30

change from https://github.com/balloob/react-sidebar

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-drawer is released under the MIT license.

Keywords

FAQs

Package last updated on 11 May 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc