styled.ts 718 B

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