styled.ts 758 B

12345678910111213141516171819202122232425262728293031323334353637
  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. border: 1.5px solid ${color.primary};
  13. `;
  14. export const Btn = styled('button')<{ isActive?: boolean }>`
  15. height: 30px;
  16. width: 100%;
  17. outline: none;
  18. background-color: white;
  19. border: none;
  20. cursor: pointer;
  21. color: ${color.primary};
  22. font-size: 14px;
  23. font-weight: bold;
  24. box-sizing: border-box;
  25. ${props =>
  26. props.isActive
  27. ? css`
  28. background-color: ${color.primary};
  29. color: white;
  30. `
  31. : null}
  32. `;