0.1.11 • Published 3 months ago

react-pkg-demo v0.1.11

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

react-pkg-demo

Features

A component for quickly throwing together a react package demo

Install

Install with npm:

 npm i react-pkg-demo -D

Usage

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

PropertyTypeRequirementDescription
packageNamestringrequiredName of package being demonstrated
colorstringrequiredTheme color
codestringrequiredLive code
scope{components}optionalAny component in the demo code
iconstringoptionalDecorative icon
promptstringoptionalText in demo to prompt the user to try it
contentstringoptionalMarkdown content (e.g. copied from your readme)

Contributing

This is mostly a personal project, but feel free to contribute and make it better!

0.1.11

3 months ago

0.1.9

3 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago