How to use the @xstyled/styled-components.code function in @xstyled/styled-components

To help you get started, we’ve selected a few @xstyled/styled-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smooth-code / bundle-analyzer / apps / client / src / components / Code.js View on Github external
import React from 'react'
import styled from '@xstyled/styled-components'

const Pre = styled.pre`
  padding: 2 0;
  overflow-x: auto;
`

const InnerCode = styled.code`
  padding: 2;
  background-color: gray900;
  border-radius: base;
  color: gray200;
`

export function Code(props) {
  return (
    <pre>      
    </pre>
  )
}
github argos-ci / argos / src / review / components / Code.js View on Github external
import React from 'react'
import styled from '@xstyled/styled-components'

const Pre = styled.pre`
  padding: 2 0;
  overflow-x: auto;
`

const InnerCode = styled.code`
  padding: 2;
  background-color: light100;
  border-radius: base;
  color: light800;
`

export function Code(props) {
  return (
    <pre>      
    </pre>
  )
}