src/modules/Popup/Popup.js
An element can specify popup content to appear.
An element can specify popup content with a header.
A trigger can be complex element.
A disabled popup only renders its trigger.
Disables automatic repositioning of the component, it will always be placed according to the position value.
A popup can provide more basic formatting.
A popup can be position around its trigger.
A popup can have no maximum width and continue to flow to fit its content.
A popup can vary in size.
A popup can be extra wide to allow for longer content.
A popup can have its colors inverted.
A popup accepts custom styles.
eventsEnabled
Enables the Popper.js
event listeners.
A popup can have dependencies which update will schedule a position update. Should be used in cases when content is changing, behaves like dependencies
in React Hooks.
popper
elementFrom semantic-ui-react@2.0.0
we are using an additional wrapping element around Popup
for positioning, see Semantic-Org/Semantic-UI-React#3947 for more details. To pass props to this element popper
shorthand can be used.
position: fixed
If your reference element is in a fixed
container, use positionFixed
. This will prevent any jumpiness since no repositioning is needed.
A popup can be triggered on hover, click, focus or multiple actions.
A popup can be nested inside another.
A popup can have its visibility controlled from outside.
A popup can open over a DOM node when using a trigger.
A popup can open over a DOM node when controlled.
A popup can be hidden on a scroll event.
A popup can appear open by default.
A popup can have delay in showing and hiding. This avoids accidental popup visibility.