Props
Name | Type | Default |
---|---|---|
element | React.ReactElement | |
popper | React.ReactElement | |
position | String | "bottom-center" |
arrow | Boolean or React.ReactElement | false |
fixMainPosition | Boolean | false |
fixRelativePosition | Boolean | false |
animations | Array | |
popperShadow | Boolean | false |
active | Boolean | false |
offsetY | Number | 0 |
offsetX | Number | 0 |
zIndex | Number | 0 |
containerStyle | React.CSSProperties | |
arrowStyle | React.CSSProperties | |
containerClassName | String | |
arrowClassName | String | |
ref | React.RefObject | |
onChange | Function | |
portal | Boolean | false |
portalTarget | HTMLElement |
Positions
All the values that you can consider as a position for popper are listed in the table below.
You can also use an alternative value instead of written positions.
Position | Alternative |
---|---|
top | top-center |
bottom | bottom-center |
left | left-center |
right | right-center |
top-start | top-left |
top-end | top-right |
bottom-start | bottom-left |
bottom-end | bottom-right |
left-start | left-top |
left-end | left-bottom |
right-start | right-top |
right-end | right-bottom |