0.11.0 • Published 10 months ago
react-pkg-demo v0.11.0
react-pkg-demo
Features
A component for quickly throwing together a react package demo
Install
Install with npm:
 npm i react-pkg-demo -DUsage
import PkgDemo from 'react-pkg-demo'
...
<PkgDemo
      color={"CBC3E3"}
      packageName={"react-pkg-demo"}
      icon={"⬇️"}
      markdown={"Some markdown content"}
      prompt={"Edit the code below and try it out!"}
      code={
        "() => <button onClick={() => alert('It works!')}>test button</button>"
      }
    />Properties
| Property | Type | Requirement | Description | 
|---|---|---|---|
| packageName | string | required | Name of package being demonstrated | 
| color | string | required | Theme color | 
| code | string | required | Live code | 
| scope | {components} | optional | Any component in the demo code | 
| icon | string | optional | Decorative icon | 
| prompt | string | optional | Text in demo to prompt the user to try it | 
| content | string | optional | Markdown content (e.g. copied from your readme) | 
Contributing
This is mostly a personal project, but feel free to contribute and make it better!
0.11.0
10 months ago
0.10.0
1 year ago
0.9.0
1 year ago
0.8.0
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.7.0
1 year ago
0.6.0
1 year ago
0.1.11
2 years ago
0.1.9
2 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago