Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "components/utils/useAutoFocus"

Index

Functions

Functions

Const useAutoFocus

  • useAutoFocus(props: object, focusElementRef: RefObject<HTMLElement>): void
  • Parameters

    • props: object
      • Optional autoFocus?: boolean
      • Optional isOpen?: boolean
      • Optional previous?: function
          • (__namedParameters: object): boolean
          • Parameters

            • __namedParameters: object
              • autoFocus: boolean

            Returns boolean

      • Optional shouldFocus?: function
          • (__namedParameters: object): boolean
          • Parameters

            • __namedParameters: object
              • autoFocus: boolean

            Returns boolean

    • focusElementRef: RefObject<HTMLElement>

    Returns void

Generated using TypeDoc