interface DropdownPopperProps {
    appendTo?: HTMLElement | "inline" | (() => HTMLElement);
    direction?: "up" | "down";
    enableFlip?: boolean;
    maxWidth?: string;
    minWidth?: string;
    position?:
        | "start"
        | "right"
        | "center"
        | "end"
        | "left";
    preventOverflow?: boolean;
    width?: string;
}

Properties

appendTo?: HTMLElement | "inline" | (() => HTMLElement)

The container to append the popper to. Defaults to 'inline'.

direction?: "up" | "down"

Vertical direction of the popper. If enableFlip is set to true, this will set the initial direction before the popper flips.

enableFlip?: boolean

Enable to flip the popper when it reaches the boundary

maxWidth?: string

Maximum width of the popper. If the value is "trigger", it will set the max width to the dropdown toggle's width

minWidth?: string

Minimum width of the popper. If the value is "trigger", it will set the min width to the dropdown toggle's width

position?:
    | "start"
    | "right"
    | "center"
    | "end"
    | "left"

Horizontal position of the popper

preventOverflow?: boolean

Flag to prevent the popper from overflowing its container and becoming partially obscured.

width?: string

Custom width of the popper. If the value is "trigger", it will set the width to the dropdown toggle's width