react-rapid-highlight

0.2.4 • Public • Published

About

Light and fast code highlight component for React applications

Usage

Import the Highlight component:

import { Highlight } from 'react-rapid-highlight'

Render the component:

<Highlight language="python" text="print(\'Hello World!\')" fontSize={12} lineHeight={0.75} rowHeight={30} theme="vsc-dark-plus" />


The following props can be passed to the Highlight component:

Package Sidebar

Install

npm i react-rapid-highlight

Weekly Downloads

0

Version

0.2.4

License

MIT

Unpacked Size

9.8 kB

Total Files

6

Last publish

Collaborators

  • leonardotoledo
  • lucaslino
  • tiagolobo
  • gabrielcfreitas