diff --git a/src/widgets/create/dropDown.tsx b/src/widgets/create/dropDown.tsx new file mode 100644 index 0000000..79e0803 --- /dev/null +++ b/src/widgets/create/dropDown.tsx @@ -0,0 +1,54 @@ +import ChevronDownIcon from '@shared/assets/icon/chevron-down.svg?react'; +import { useState } from 'react'; +interface DropDownProps { + title: string; + value?: string; + options: string[]; + placeholder?: string; + onChange: (value: string) => void; +} + +export function DropDown({ + title, + value, + placeholder, + options, + onChange, +}: DropDownProps) { + const [open, setOpen] = useState(false); + return ( +
+ {title} + * +
+ + {open && ( +