@reaf-toolkit/code-view
v0.0.15
Published
> code view
Downloads
5
Readme
@reaf-toolkit/code-view
code view
Installation
Using npm:
$ npm i -g npm
$ npm i --save @reaf-toolkit/code-view
Using yarn:
$ yarn add @reaf-toolkit/code-view
Usage
import CodeView from '@reaf-toolkit/code-view'
import '@reaf-toolkit/code-view/dist/index.css'
const App = () => {
return (
<div className="container">
<CodeView
showCode
theme="dark"
dependencies={{
Button,
}}
source={require('./article.md')}
/>
</div>
)
}
export default App