Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 676 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 676 Bytes

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