Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Popup

The Popup component renders a trigger and positions its content in a portal. Use PopupList helpers to build compact action menus.

Import

1
import { Popup, PopupList } from '@payloadcms/ui'

Action menu

Loading component example…

Popup content supports keyboard navigation and automatically flips when there is not enough viewport space in the preferred direction.

Common props

These are the props most commonly used with this component. See its exported types in @payloadcms/ui for the complete list.

Prop

Type

Default

Description

button

ReactNode

Content rendered inside the trigger.

children

ReactNode

Content rendered inside the popup.

render

({ close }) => ReactNode

Renders content with a function for closing the popup.

size

'small' | 'medium' | 'large' | 'fit-content'

'medium'

Sets the popup content width.

buttonSize

'xsmall' | 'small' | 'medium' | 'large'

Sets the trigger padding.

horizontalAlign

'left' | 'center' | 'right'

'left'

Sets the preferred horizontal alignment.

verticalAlign

'top' | 'bottom'

'bottom'

Sets the preferred vertical position.

initActive

boolean

false

Sets the initial uncontrolled open state.

forceOpen

boolean

Controls the open state externally.

disabled

boolean

false

Prevents the trigger from opening the popup.

showOnHover

boolean

false

Opens the popup while the trigger is hovered.

Was this page helpful?

Next

ReactSelect