Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/react-cookie-banner/src/hooks/banner/useBannerToggleOverlay"

Index

Functions

useBannerToggleOverlay

  • useBannerToggleOverlay(overlay: HTMLElement): { overlay: HTMLElement; toggleOverlay: (Anonymous function) }
  • Provides a callback which can be used to update the state of the banner context and manipulate the visible and animationVisible property correctly.

    Parameters

    • overlay: HTMLElement

    Returns { overlay: HTMLElement; toggleOverlay: (Anonymous function) }

    • overlay: HTMLElement
    • toggleOverlay: (Anonymous function)

Generated using TypeDoc