Display modes
The Popup component supports five display modes that specify where on the screen is it going to render itself:
'center'- will render the popup on the center of the screen'top'- will render the popup on the top of the screen sliding down'bottom'- will render the popup on the bottom of the screen sliding up'anchored'- will render the popup above or below the element it is anchored to. Theanchoroption will specify the element to which the popup is positioned. By default it is the input element rendered by the popup.'inline'- will render the popup into the page embedded.
Setting a display option
<Popup display="anchored" isOpen={myOpenState}>
<p>Some content inside the popup!</p>
</Popup>