@brisk-docs/file-viewer
v0.2.5
Published
This package is used for rendering examples and their source code
Downloads
11
Readme
import FileViewer from './src/components/file-viewer' import ButtonExample from './examples/view-button'
File Viewer Component
This library is designed to help you display inline examples and their corresponding source code.
Usage
import FileViewer from '@brisk-docs/file-viewer'
<FileViewer Component={ButtonExample} title="Button" source={require('!!raw-loader!./examples/view-button')} />
<FileViewer Component={ButtonExample} title="Button" source={require('!!raw-loader!./examples/view-button')} />