Files
Checkmate/Client/src/Dropdown.jsx
T

18 lines
527 B
React
Raw Normal View History

2024-05-05 00:01:46 -07:00
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;