Rev 3459 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react';
import { InputAdornment, InputBase } from '@mui/material';
export function Input({
name,
color,
defaultValue,
onChange,
value,
icon,
endAdornment,
sx,
...props
}) {
return (
<InputBase
autoComplete='off'
name={name}
onChange={onChange}
defaultValue={defaultValue}
value={value}
color={color}
startAdornment={icon && <InputAdornment position='start'>{icon}</InputAdornment>}
endAdornment={endAdornment && <InputAdornment position='end'>{endAdornment}</InputAdornment>}
fullWidth
sx={sx}
{...props}
/>
);
}