Last active
February 21, 2019 17:02
-
-
Save MykolaGolubyev/4d8aaa453e153e3b5c2b19be82c79936 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Registries, WrapperProps } from 'react-component-viewer'; | |
const registries = new Registries({componentWrapper: DemoWrapper}); | |
registries.add('components') | |
.registerAsGrid('Links', 300, linksDemo) | |
.registerAsTwoColumnTable('Buttons', buttonsDemo) | |
.registerAsRows('Inputs', inputsDemo); | |
function DemoWrapper({OriginalComponent}: WrapperProps) { | |
return ( | |
<div className="component-demo-local-wrapper"> | |
<OriginalComponent/> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment