Interface UseClickOutsideOptions<Foo>

options for useClickOutside

Type Parameters

  • Foo extends HTMLElement

Hierarchy

  • UseClickOutsideOptions

Properties

active?: boolean

flag to indicate if the listener should be currently active

Default Value

true

innerElementRef?: RefObject<Foo>

a ref object to the target element

Default Value

creates a ref if not provided

outerElementRef?: RefObject<Foo>

an optional ref to the outside element.

Default Value

uses window as the default target

Generated using TypeDoc