選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CardContainer.tsx 658B

12345678910111213141516171819202122232425262728
  1. import { Box } from '@mui/system';
  2. interface CardContainerProps {
  3. children: JSX.Element;
  4. }
  5. const CardContainer: React.FC<CardContainerProps> = ({ children }) => {
  6. return (
  7. <Box
  8. sx={{
  9. ml: { md: 2 },
  10. mt: { xs: 5, md: 0 },
  11. display: 'flex',
  12. flexDirection: {
  13. xs: 'column',
  14. sm: 'row',
  15. lg: 'column',
  16. },
  17. justifyContent: { sm: 'flex-start' },
  18. flexWrap: 'wrap',
  19. }}
  20. >
  21. {children}
  22. </Box>
  23. );
  24. };
  25. export default CardContainer;