1.0.1 • Published 4 years ago
@feizheng/react-github-corner v1.0.1
react-github-corner
Github corner for react.
installation
npm install -S @feizheng/react-github-corner
update
npm update @feizheng/react-github-corner
properties
Name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | false | - | The extended className for component. |
value | string | false | - | Default value. |
usage
import css
@import "~@feizheng/react-github-corner/dist/style.scss"; // customize your styles: $react-github-corner-options: ()
import js
import React from 'react'; import ReactDOM from 'react-dom'; import ReactGithubCorner from '@feizheng/react-github-corner'; import './assets/style.scss'; class App extends React.Component { componentDidMount() {} render() { return ( <div className="app-container"> <ReactGithubCorner value="https://github.com/afeiship" /> </div> ); } } ReactDOM.render(<App />, document.getElementById('app'));
documentation
license
Code released under the MIT license.