@comparaonline/ui-drawer

0.27.1 • Public • Published

@comparaonline/ui-drawer

Installation

It has react-modal as peer dependency.

yarn add react-modal @comparaonline/ui-drawer

Usage

import Drawer from '@comparaonline/ui-drawer';

<Drawer isOpen anchor="left" maxWidth="600px">
  ...
</Drawer>;

Proptypes

Name Required Type Default Description
isOpen false boolean false Determines open state
anchor false string left, right, top, bottom left
maxWidth false string 320px Max width for left and right anchors
maxHeight false string 100% Max height for top and bottom anchors

For more information about the props see the React Modal usage summary.

Dependents (0)

Package Sidebar

Install

npm i @comparaonline/ui-drawer

Weekly Downloads

20

Version

0.27.1

License

MIT

Unpacked Size

29 kB

Total Files

10

Last publish

Collaborators

  • gnavarro
  • dsuarez_compa
  • pfariaz
  • ricardo.sosa
  • suarezcumare
  • fverag
  • comparaonline-dev
  • comparaonlineprivate
  • matotias
  • javierlara1989
  • smurua
  • eseceve
  • pablocompara