Type parameters
You can customize the behavior with optional type parameters.
Type constraint | Default | Possible values |
---|---|---|
HTMLElement | HTMLButtonElement | Any type that extends HTMLElement |
const { buttonProps, itemProps, isOpen } = useDropdownMenu<HTMLDivElement>(3);
<div {...buttonProps} id='menu-button'>
Example
</div>