apeman-react-demo
apeman react package for demo components
Installation
$ npm install apeman-react-demo --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import pkg from '../package.json'
import React from 'react'
import {ApDemo, ApDemoStyle} from 'apeman-react-demo'
const ExampleComponent = React.createClass({
render () {
return (
<ApDemo pkg={ pkg }
src={ `${__dirname}/../demo` }
/>
)
}
})
Components
ApDemo
Props
Name | Type | Default | Description |
---|---|---|---|
pkg | object | | | Package data |
src | string | | | Source file path of demo target |
favicon | string | 'https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/favicon/react-favicon.png' | | Favicon URL |
scripts | array | [] | | Script file path |
links | object | {} | | Link URLs |
head | node | null | | Additional head child node |
body | node | null | | Additional body child node |
License
This software is released under the MIT License.