Edit in GitHubLog an issue

useDropdown()

Functions

useDropdown()Dropdown

A React Hook for adding dropdown-related logic.

Typedefs

Dropdown : Object

The object returned contains the pieces needed to add the dropdown logic to your components

A React Hook for adding dropdown-related logic.

Returns: Dropdown — An object containing functions and values to add dropdown logic

The object returned contains the pieces needed to add the dropdown logic to your components

Properties

NameTypeDescription
elementRefRefA ref object for attaching to React elements
expandedBooleanThe value of the expanded state
setExpandedfunctionState Hook function for setting the expanded state
triggerRefRefA ref object for attaching to React elements

Source Code: pwa-studio/packages/peregrine/lib/hooks/useDropdown.js

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.