cardItem.tsx 417 B

12345678910111213141516171819202122232425
  1. import styled from '@emotion/styled';
  2. import space from 'app/styles/space';
  3. type Props = {
  4. label: string;
  5. value: string;
  6. };
  7. function CardItem({label, value}: Props) {
  8. return (
  9. <Wrapper>
  10. <strong>{`${label}:`}</strong>
  11. {value}
  12. </Wrapper>
  13. );
  14. }
  15. export default CardItem;
  16. const Wrapper = styled('div')`
  17. display: grid;
  18. grid-template-columns: max-content 1fr;
  19. grid-gap: ${space(1)};
  20. `;