Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2077 | Ir a la última revisión | | Ultima modificación | Ver Log |

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