Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 11 days ago
JSON representation

A simple React wrapper around the Highlight.js library.

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