0.0.18 • Published 3 years ago

@youyouzone/react-code-highlight v0.0.18

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

React-Code-Highlight

React component for code highlight base on hightlight.js.

Installation

  npm install @youyouzone/react-code-highlight

Usage

import HighLighter from '@youyouzone/react-code-highlight';

//use as a react component
<HighLighter />

Props:

  • cb?: (content:string) => any - custom callback which accept input string.
  • className?: string - custom class name.
  • language?: string - highlight langeuage, powered by highlight.js. Default is 'javascript'.
  • debounceTime?: number - debounce time of input change to invoke callback function. Default is 666 ms.
  • content?: string - content in text box.

License

This project is licensed under License: MIT

Contact

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.9

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago