commandLine.tsx 567 B

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