styled.ts 774 B

1234567891011121314151617181920212223242526272829303132
  1. import styled, { css } from 'styled-components';
  2. import { color } from '../../constants/style';
  3. export const Container = styled('div')<{ showBottomBorder: boolean }>`
  4. display: inline-flex;
  5. flex-direction: column;
  6. width: 100%;
  7. ${props =>
  8. props.showBottomBorder
  9. ? css`
  10. border-bottom: 1px solid ${color.black12};
  11. `
  12. : ''}
  13. `;
  14. export const Label = styled.span`
  15. padding: 8px;
  16. `;
  17. export const ContentWrapper = styled('div')<{ isCollapse: boolean }>`
  18. display: inline-block;
  19. transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  20. max-height: ${props => (props.isCollapse ? '0px' : '800px')};
  21. background-color: ${color['hyper-light-gray']};
  22. overflow: hidden;
  23. `;
  24. export const Content = styled.div`
  25. padding: 10px;
  26. `;