Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2078 | Rev 2080 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
2073 stevensc 1
import React from 'react'
2078 stevensc 2
import { FormControl, InputBase, InputLabel, styled } from '@mui/material'
2073 stevensc 3
 
2078 stevensc 4
const AppInput = styled(InputBase)(({ theme }) => ({
2077 stevensc 5
  '& .MuiInputBase-input': {
6
    borderRadius: 4,
7
    position: 'relative',
8
    backgroundColor: theme.palette.background.default,
9
    border: `1px solid var(--border-primary)`,
10
    fontSize: 14,
11
    padding: '5px 10px',
12
    transition: theme.transitions.create([
13
      'border-color',
14
      'background-color',
15
      'box-shadow'
16
    ])
2073 stevensc 17
  },
18
  '& svg': {
19
    fontSize: '1.3rem'
20
  }
21
}))
22
 
2078 stevensc 23
const Input = ({ label, ...props }) => {
2077 stevensc 24
  return (
2079 stevensc 25
    <FormControl variant='standard' fullWidth>
2078 stevensc 26
      <InputLabel shrink>{label}</InputLabel>
2079 stevensc 27
      <AppInput {...props} fullWidth />
2078 stevensc 28
    </FormControl>
2077 stevensc 29
  )
2073 stevensc 30
}
31
 
32
export default Input