From 1e8498b52c85aa97ca0f1998e60df6a0738f70a9 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sat, 25 Mar 2023 21:36:17 -0700 Subject: [PATCH] Animate dropdown --- src-web/components/core/Dropdown.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src-web/components/core/Dropdown.tsx b/src-web/components/core/Dropdown.tsx index c01340b4..e3aaa257 100644 --- a/src-web/components/core/Dropdown.tsx +++ b/src-web/components/core/Dropdown.tsx @@ -1,4 +1,5 @@ import classnames from 'classnames'; +import { motion } from 'framer-motion'; import type { CSSProperties, HTMLAttributes, MouseEvent, ReactElement, ReactNode } from 'react'; import { Children, cloneElement, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useKeyPressEvent } from 'react-use'; @@ -159,13 +160,15 @@ function Menu({ className, items, onClose, triggerRect }: MenuProps) { return (