For AI agents: the complete documentation index is available at https://ifhover.github.io/leaf-ui/v/0.6.0/en/llms.txt, the full documentation bundle is available at https://ifhover.github.io/leaf-ui/v/0.6.0/en/llms-full.txt, and this page is available as Markdown at https://ifhover.github.io/leaf-ui/v/0.6.0/en/api/popup-options.md.
  • English
  • PopupOptions

    Shared popup settings for Select, date and time pickers, and related components. Component settings override ConfigProvider's getPopupContainer. Modal and Drawer call their mounting-container prop container.

    PopupOptions

    PropertyTypeDescription
    popupPlacement'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'Placement relative to the trigger.
    popupClassNamestringCustom popup class.
    popupStyleCSSPropertiesCustom popup styles.
    popupRender(content: React.ReactNode) => React.ReactNodeWrap or extend popup content; retain the supplied content to preserve interaction.
    getPopupContainer() => Element | DocumentFragmentReturn the popup container, including a ShadowRoot.

    Mount the container before interaction and avoid clipping the popup. Access the DOM inside the callback. For a ShadowRoot, load component styles inside that root too. Each component documents its default placement and additional options.