Implemented the drop down component.
This commit is contained in:
1 parent
3e5a0329cb
commit
f98ee170f6
12 files changed
+5022
-24
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user