@jswork/react-demokit
v1.0.2
Published
Demo tookit for react.
Downloads
6
Readme
react-demokit
Demo tookit for react.
installation
npm install -S @jswork/react-demokit
properties
| Name | Type | Required | Default | Description | | ----------- | ------- | -------- | ------------------------------------------------------------------- | ------------------------------------- | | className | string | false | - | The extended className for component. | | url | string | false | - | The github homepage url. | | title | string | false | - | The compoennt name. | | description | string | false | - | The component description. | | element | element | false | | Main element. |
usage
- import css
@import "~@jswork/react-github-corner/dist/style.scss";
@import "~@jswork/react-sw-update-tips/dist/style.scss";
@import "~@jswork/react-demokit/dist/style.scss";
// customize your styles:
$react-demokit-options: ()
- import js
import React from 'react';
import ReactDOM from 'react-dom';
import pkg from '../package.json';
import ReactDemokit from '@jswork/react-demokit';
import './assets/style.scss';
class App extends React.Component {
render() {
return (
<div className="app-container">
<ReactDemokit
title="react demokit"
description={pkg.description}
className="p-6">
<button className="button">I'm the component 🐶</button>
</ReactDemokit>
</div>
);
}
}
ReactDOM.render(<App />, document.getElementById('app'));
documentation
- https://afeiship.github.io/react-demokit/
license
Code released under the MIT license.