Function useDisclosureGroup
useDisclosureGroup<T extends HTMLElement = HTMLElement>( allowMultiple?: boolean,): { api: RefObject<null>; ref: RefObject<null | T> } Type Parameters
- T extends HTMLElement = HTMLElement
Parameters
- allowMultiple: boolean = false
Returns { api: RefObject<null>; ref: RefObject<null | T> }
Ref hook that groups
[data-hl-disclosure]elements for mutual exclusivity.