Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3198 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3198 Rev 3719
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react';
2
import { Box } from '@mui/material'
2
import { Box } from '@mui/material';
3
 
3
 
4
export default function Form({
4
export default function Form({ children, onSubmit = () => {}, id = '', ...props }) {
5
  children,
-
 
6
  onSubmit = () => {},
-
 
7
  id = '',
-
 
8
  ...props
-
 
9
}) {
-
 
10
  return (
5
  return (
11
    <Box
6
    <Box
12
      component='form'
7
      component='form'
13
      onSubmit={onSubmit}
8
      onSubmit={onSubmit}
14
      sx={{
9
      sx={{
15
        display: 'flex',
10
        display: 'flex',
16
        flexDirection: 'column',
11
        flexDirection: 'column',
17
        margin: 'auto',
12
        margin: 'auto',
18
        position: 'relative',
13
        position: 'relative',
19
        gap: ({ spacing }) => spacing(0.5),
14
        gap: ({ spacing }) => spacing(0.5),
20
        width: '100%'
15
        width: '100%'
21
      }}
16
      }}
22
      id={id}
17
      id={id}
23
      {...props}
18
      {...props}
24
    >
19
    >
25
      {children}
20
      {children}
26
    </Box>
21
    </Box>
27
  )
22
  );
28
}
23
}