Implemented the drop down component.

This commit is contained in:
M M committed 2024-05-05 00:01:46 -07:00
1 parent 3e5a0329cb
commit f98ee170f6
12 files changed
+5022 -24

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import React from 'react';
import Autocomplete from '@mui/material/Autocomplete';
import TextField from '@mui/material/TextField';
const DropDown = ({ id, label, options, onChange, value }) => {
return (
<Autocomplete
id={id}
options={options}
getOptionLabel={(option) => option.name} // Assuming each team member object has a 'name' property
value={value}
onChange={onChange}
renderInput={(params) => <TextField {...params} label={label} />}
/>
);
};
export default DropDown;