Open11

css

jonchonjonchon

interface Props ={
title : string
content : ReactNode
}

const borderandtitle = (props:Props)=>{
return(
  <Grid item xs={12} md={'auto'}>
            <Box sx={{ mb: 2, pl: 2, pt: 1, border: '1px solid rgba(200,200,200)', borderRadius: 1.5, position: 'relative' }}>
              <Box sx={{ mx: 4, px: 1, bgcolor: 'rgba(255,255,255)', position: 'absolute', left: -20, top: -10 }}>
                <Typography variant={'body2'} color={'rgba(140,140,140)'} sx={{}}>
                  {props.title}
                </Typography>
              </Box>
                {props.content}
            </Box>
          </Grid>
)}