@team.poi/code_block
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@team.poi/code_block

Code Block

Installation

NPM

npm install @team.poi/code_block

Yarn

yarn add @team.poi/code_block

Usage

import { CodeBlock } from "@team.poi/code_block";
export default function Home() {
  return (
    <CodeBlock
      code={
        '#include <bits/stdc++.h>\nusing namespace std;\nint main() {\n\tcout << "Hello, World!";\n}'
      }
      language="c++"
    />
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @team.poi/code_block

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

1.83 MB

Total Files

17

Last publish

Collaborators

  • team.poi