Open
Description
Currently only HTMLAnchorElement
s are supported for use as menu item elements with the hook. For flexibility, and as not to prescribe the implementation of the hook to developers using the package, making the ref's typing more generic but still type safe would be a warranted enhancement.
This will probably require an addition of passing generic types to the hook in order to accomplish.