Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "WithSkipLinks"

Index

Functions

WithSkipLinks

  • WithSkipLinks(__namedParameters: { children: ReactNode; defaultSkipLinks: undefined | SkipLinksState }): Element
  • Context wrapper to maintain the list of SkipLink items in state on any given page, in the order that they appear within the DOM. To support SSR, a default SkipLink[] can be provided. When relying on this, the id attribute must be manually applied to the target elements.

    <WithSkipLinks defaultSkipLinks={...}>
       // your app here
    </WithSkipLinks>

    Parameters

    • __namedParameters: { children: ReactNode; defaultSkipLinks: undefined | SkipLinksState }

    Returns Element

reducer

  • Parameters

    • state: SkipLink[]
    • __namedParameters: { payload: undefined | SkipLink; type: string }
      • payload: undefined | SkipLink
      • type: string

    Returns SkipLinksState

Generated using TypeDoc