Package: https://www.npmjs.com/package/react-code-box
Package Repo: https://github.com/borisdedejski/react-code-box
Demo: https://github.com/borisdedejski/react-code-box-demo
https://github.com/borisdedejski/react-code-box-demo
With Yarn:
yarn add react-code-box
With npm:
npm install react-code-box
You can override classes and styles on the CodeBox via its props style
and className
.
Props that CodeBox receives are:
variant: "dark" | "light"; title: string; code: string; style?: CSSProperties; className?: string; id: string;
It comes in two variants, it can rather be dark or light.
- Clone the repo
git clone https://github.com/borisdedejski/react-code-box-demo
- Install dependencies
yarn install
- Start
yarn start
**Note: Feel free to contribute