Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuHookReturnValue<ToggleEl>

remarks

@since 5.0.0

Type parameters

  • ToggleEl: HTMLElement

Hierarchy

Index

Properties

menuNodeRef: RefObject<HTMLDivElement>

A ref containing the menu DivHTMLElement if you need access to it for your use case.

An object of props that should be provided to the Menu component.

menuRef: Ref<HTMLDivElement>

Maybe don't need to provide.

toggleProps: ProvidedMenuToggleProps<ToggleEl>

An object of props that must be provided to the toggle element for the visibility functionality of menus to work.

see

ProvidedMenuToggleProps

toggleRef: MutableRefObject<null | ToggleEl>

A ref that must be passed to the toggle element if the toggle should be refocused when the menu is closed via a keyboard press. This can also be used if you need access to the toggle element's DOM node for some reason.

Generated using TypeDoc