styled.ts 748 B

1234567891011121314151617181920212223242526272829
  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 => (props.showBottomBorder ? css`
  8. border-bottom: 1px solid ${color.black12};
  9. ` : '')}
  10. `;
  11. export const Label = styled.span`
  12. padding: 8px;
  13. `;
  14. export const ContentWrapper = styled('div')<{isCollapse: boolean}>`
  15. display: inline-block;
  16. transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  17. max-height: ${props => (props.isCollapse ? '0px' : '800px')};
  18. background-color: ${color['hyper-light-gray']};
  19. overflow: hidden;
  20. `;
  21. export const Content = styled.div`
  22. padding: 10px;
  23. `;