commandLine.tsx 591 B

12345678910111213141516171819202122232425
  1. import React from 'react';
  2. import styled from '@emotion/styled';
  3. import space from 'app/styles/space';
  4. type Props = {
  5. /**
  6. * The text interface
  7. */
  8. children: string;
  9. };
  10. const CommandLine = ({children}: Props) => <Wrapper>{children}</Wrapper>;
  11. export default CommandLine;
  12. const Wrapper = styled('code')`
  13. padding: ${space(0.5)} ${space(1)};
  14. color: ${p => p.theme.pink300};
  15. background: ${p => p.theme.pink100};
  16. border: 1px solid ${p => p.theme.pink200};
  17. font-family: ${p => p.theme.text.familyMono};
  18. font-size: ${p => p.theme.fontSizeMedium};
  19. white-space: nowrap;
  20. `;