1.0.0 • Published 4 years ago
@jswork/react-gh2project v1.0.0
react-gh2project
React github pages to project.
installation
npm install -S @jswork/react-gh2project
properties
Name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | false | - | The extended className for component. |
href | string | false | - | Default value. |
usage
import css
@import "~@jswork/react-gh2project/dist/style.css"; // or use sass @import "~@jswork/react-gh2project/dist/style.scss"; // customize your styles: $react-gh2project-options: ()
import js
import ReactDemokit from '@jswork/react-demokit'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactGh2project from '@jswork/react-gh2project'; import './assets/style.scss'; class App extends React.Component { render() { return ( <ReactDemokit className="p-3 app-container" url="https://github.com/afeiship/react-gh2project"> <ReactGh2project /> <ReactGh2project disabled style={{ top: '40%' }} /> </ReactDemokit> ); } } ReactDOM.render(<App />, document.getElementById('app'));
documentation
license
Code released under the MIT license.
1.0.0
4 years ago