2.0.2 • Published 4 years ago

movable-popover-react v2.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Movable popover

This is a react component with a movable popover with an animation feature.

Dependencies

IMPORTANT: install react-draggable component for this npm package

Installation

npm install movable-popover-react react-draggable
Please install the latest version 2.0.1 it resolve the issues i have with webpack

Usage

import MovablePopover
          <MovablePopover
            id="examle-id"
            moveTo="left"
            backgroundColor="white"
            onStartPopoverMovement={()=>{}}
            onStopoPopoverMovement={()=>{}}
            content={<div> </div>}
            isVisible={true}
          />

Props

id type string --id of the popover

moveTo type string (left, right, top, down) --animation movement on popover appear

backgroundColor type string .-- color of the background on popover

onStartPopoverMovement type function -- function on start popover movement

onStopPopoverMovement type function -- function on stop popover movement

content type html -- html of the content of the div

isVisible type bool -- is visible popover

zIndex type string -- zindex for popover if needed default (1030)

License

MIT

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

0.1.0

4 years ago

1.0.14

4 years ago

1.0.12-s

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.10

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago