styled.ts 718 B

123456789101112131415161718192021222324252627282930313233343536
  1. import styled, { css } from 'styled-components';
  2. import { color } from '../../constants/style';
  3. export const Wrapper = styled.div`
  4. width: 100%;
  5. `;
  6. export const BtnGroup = styled.div`
  7. background-color: white;
  8. border-radius: 4px;
  9. overflow: hidden;
  10. display: flex;
  11. justify-content: space-around;
  12. `;
  13. export const Btn = styled('button')<{ isActive?: boolean }>`
  14. height: 30px;
  15. width: 100%;
  16. outline: none;
  17. background-color: white;
  18. border: none;
  19. cursor: pointer;
  20. color: ${color.primary};
  21. font-size: 14px;
  22. font-weight: bold;
  23. box-sizing: border-box;
  24. ${props =>
  25. props.isActive
  26. ? css`
  27. background-color: ${color.primary};
  28. color: white;
  29. `
  30. : null}
  31. `;