Module "frontend-packages/react-cookie-banner/src/hooks/banner/useBannerToggleOverlay"
Functions
useBannerToggleOverlay
- useBannerToggleOverlay(overlay: HTMLElement): { overlay: HTMLElement; toggleOverlay: (Anonymous function) }
-
Parameters
Returns { overlay: HTMLElement; toggleOverlay: (Anonymous function) }
-
overlay: HTMLElement
-
toggleOverlay: (Anonymous function)
Provides a callback which can be used to update the state of the banner context and manipulate the
visible
andanimationVisible
property correctly.