0.0.7 • Published 7 years ago
@c8s/code-block v0.0.7
@c8s/code-block
Usage
/**
 * As to prepare of using the `CodeBlock`
 * 
 * ```bash
 * yarn add @c8s/code-block @c8s/theme react @types/react styled-components @types/styled-components
 * ```
 */
import CodeBlock from '@c8s/code-block';
import {Theme, theme} from '@c8s/theme';Example
() => (
  <Theme theme={theme}>
    {/* ... */}
      <CodeBlock lang="jsx">{`
class Example extends React.Component {
  render() {
    return <Youtube videoId="psQkDS3zqRg" />
  }
}
      `}</CodeBlock>
    {/* ... */}
  </Theme>
);Contributors
Thanks goes to these wonderful people (emoji key):
| 純📖 | Aki-Japan📖 | 
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!