3.2.1 • Published 1 month ago

@fidelisppm/popover v3.2.1

Weekly downloads
7
License
SEE LICENSE IN GI...
Repository
github
Last release
1 month ago

Popover

A React component which displays a popover when a target element is clicked.

Props

trigger (object):
Required. A DOM element which will display the popover when clicked.

content (object):
Required. A DOM element which will be rendered inside the popover.

position (string):
Optional. The position relative to the trigger where the popover will be displayed. Acceptable values are top, bottom, left, and right.
Defaults to top.

hideArrow (bool):
Optional. If true, the arrow will not be displayed.
Defaults to false.

arrowColor (string):
Optional. The color of the popover arrow.
Defaults to "#000000".

arrowSize (int):
Optional. The size in pixels of the width of the popover arrow.
Defaults to 6.

distance (int):
Optional. The distance in pixels the popover will be rendered away from the trigger.
Defaults to 0.

Usage

import { Popover } from '@fidelisppm/popover';

<Popover
  trigger={document.getElementById('example-element')}
  content={<span>I am popover text!</span>}
  position="top"
  hideArrow={false}
  arrowColor="#000000"
  arrowSize={6}
  distance={0}
/>
3.2.1

1 month ago

3.2.0

1 year ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago