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
Name
Type
Description
expanded
BooleanThe value of the
expanded stateSource Code: pwa-studio/packages/peregrine/lib/hooks/useDropdown.js