Skip to main content

Type parameters

You can customize the behavior with optional type parameters.

Type constraintDefaultPossible values
HTMLElementHTMLButtonElementAny type that extends HTMLElement
const { buttonProps, itemProps, isOpen } = useDropdownMenu<HTMLDivElement>(3);
<div {...buttonProps} id='menu-button'>
Example
</div>