Rev 2077 | Rev 2079 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react'
import { FormControl, InputBase, InputLabel, styled } from '@mui/material'
const AppInput = styled(InputBase)(({ theme }) => ({
'& .MuiInputBase-input': {
borderRadius: 4,
position: 'relative',
backgroundColor: theme.palette.background.default,
border: `1px solid var(--border-primary)`,
fontSize: 14,
padding: '5px 10px',
transition: theme.transitions.create([
'border-color',
'background-color',
'box-shadow'
])
},
'& svg': {
fontSize: '1.3rem'
}
}))
const Input = ({ label, ...props }) => {
return (
<FormControl variant='standard'>
<InputLabel shrink>{label}</InputLabel>
<AppInput {...props} />
</FormControl>
)
}
export default Input