@cloudflare/component-code

    2.3.328 • Public • Published

    @cloudflare/component-code

    Cloudflare Code Component

    Installation

    Installation with yarn is recommended

    $ yarn add @cloudflare/component-code
    

    Usage

    import React from 'react';
    import { Code } from '../../src';
    
    class CodeComponent extends React.Component {
      render() {
        return (
          <div>
            <Code isCodeBlock={true}>Look at this code block!</Code>
            <br />
            And this <Code>inline code</Code>!
          </div>
        );
      }
    }
    
    export default CodeComponent;

    Keywords

    none

    Install

    npm i @cloudflare/component-code

    DownloadsWeekly Downloads

    1,234

    Version

    2.3.328

    License

    BSD-3-Clause

    Unpacked Size

    98.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • xuranwang
    • vasturiano
    • caass
    • dcruz_cf
    • rexscaria
    • jculvey
    • sejoker
    • cf-ci-write
    • segments-write
    • thibmeu
    • nataliescottdavidson
    • xortive
    • gurjinder
    • cf-ci2
    • lvalenta
    • nilslice
    • worenga