17 lines
590 B
JavaScript
17 lines
590 B
JavaScript
import React from 'react';
|
|
|
|
import InputLabel from '@mui/material/InputLabel';
|
|
import FormControl from '@mui/material/FormControl';
|
|
import Select from '@mui/material/Select';
|
|
|
|
export default function Component({ variant = 'outlined', label = '', value = '', disabled = false, onChange = function (event) {}, children = null }) {
|
|
return (
|
|
<FormControl variant={variant} fullWidth>
|
|
<InputLabel>{label}</InputLabel>
|
|
<Select value={value} onChange={onChange} disabled={disabled} label={label} MenuProps={{ disableScrollLock: true }}>
|
|
{children}
|
|
</Select>
|
|
</FormControl>
|
|
);
|
|
}
|