Cloudflare Code Component


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
Minified + gzip package size for @cloudflare/component-code in KB



Cloudflare Code Component


Installation with yarn is recommended

$ yarn add @cloudflare/component-code


import React from 'react';
import { Code } from '../../src';

class CodeComponent extends React.Component {
  render() {
    return (
        <Code isCodeBlock={true}>Look at this code block!</Code>
        <br />
        And this <Code>inline code</Code>!

export default CodeComponent;

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.