styled.ts 495 B

1234567891011121314151617181920212223242526
  1. import styled from 'styled-components';
  2. const style: Record<string, string> = {
  3. textfield: '',
  4. checkbox: `
  5. border-radius: 8px;
  6. `,
  7. radio: `
  8. border-radius: 100%;
  9. `,
  10. };
  11. export const TextBox = styled.div<{ type: string }>`
  12. width: 100%;
  13. height: 100%;
  14. background-color: rgba(51, 190, 219, 0.3);
  15. font-size: 1.3rem;
  16. color: rgba(0, 0, 0, 0.5);
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. ${(props) => style[props.type]}
  21. `;
  22. export default TextBox;