feat: added dropdown component

This commit is contained in:
Daniel
2023-03-23 02:41:54 +03:30
parent e5e2a615fc
commit f80113c487
20 changed files with 152 additions and 54 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import React, { useRef, useEffect, ReactNode, RefObject } from "react";
interface Props {
type Props = {
children: ReactNode;
onClickOutside: Function;
className?: string;
}
};
function useOutsideAlerter(
ref: RefObject<HTMLElement>,