@brisk-docs/file-viewer

This package is used for rendering examples and their source code

Usage no npm install needed!

<script type="module">
  import briskDocsFileViewer from 'https://cdn.skypack.dev/@brisk-docs/file-viewer';
</script>

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')} />