useModalGroup<T extends HTMLElement = HTMLElement>( closeOnBackdrop?: boolean,): { api: RefObject<null | DialogApi>; ref: RefObject<null | T> } Type Parameters
- T extends HTMLElement = HTMLElement
Parameters
- closeOnBackdrop: boolean = true
Returns { api: RefObject<null | DialogApi>; ref: RefObject<null | T> }
Ref hook that wires modal openers/closers + focus trap within a container.