https://github.com/afeiship/react-highlight
A simple React wrapper around the Highlight.js library.
https://github.com/afeiship/react-highlight
code component components highlight highlight-library highlightjs-syntax react
Last synced: 10 months ago
JSON representation
A simple React wrapper around the Highlight.js library.
- Host: GitHub
- URL: https://github.com/afeiship/react-highlight
- Owner: afeiship
- License: mit
- Created: 2019-07-26T15:39:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T13:07:49.000Z (over 4 years ago)
- Last Synced: 2025-01-06T08:09:08.535Z (about 1 year ago)
- Topics: code, component, components, highlight, highlight-library, highlightjs-syntax, react
- Language: JavaScript
- Homepage:
- Size: 1 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-highlight
> A simple React wrapper around the Highlight.js library.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install -S @jswork/react-highlight
```
## properties
__GENERATE_DOCS__
## usage
1. import css
```scss
@import "~@jswork/boilerplate-react-component/dist/style.css";
// or use sass
@import "~@jswork/boilerplate-react-component/dist/style.scss";
// customize your styles:
$boilerplate-react-component-options: ()
```
2. import js
```js
__GENERATE_DAPP__
```
## license
Code released under [the MIT license](https://github.com/afeiship/react-highlight/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/react-highlight
[version-url]: https://npmjs.org/package/@jswork/react-highlight
[license-image]: https://img.shields.io/npm/l/@jswork/react-highlight
[license-url]: https://github.com/afeiship/react-highlight/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-highlight
[size-url]: https://github.com/afeiship/react-highlight/blob/master/dist/react-highlight.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/react-highlight
[download-url]: https://www.npmjs.com/package/@jswork/react-highlight