EnhanceDropdownOptions: {
    defaultOpen?: boolean;
    onOpenChange?: (open: boolean) => void;
    onSelect?: (value: string, item: HTMLElement) => void;
    placement?: "bottom" | "top";
}

Options for enhanceDropdown.

Type declaration

  • OptionaldefaultOpen?: boolean

    Open the menu immediately on enhance. Defaults to false.

  • OptionalonOpenChange?: (open: boolean) => void

    Called after the menu opens or closes.

  • OptionalonSelect?: (value: string, item: HTMLElement) => void

    Called with the item's value when a menu item is activated.

  • Optionalplacement?: "bottom" | "top"

    Preferred side; flips to top when there is no room below.