etch-octicon

2.0.0 • Public • Published

etch-octicon

npm package

An Etch component which renders a GitHub Octicons icon.

All Octicons

Usage

Install and use the Octicon component like so:

npm install --save etch-octicon
import Octicon from 'etch-octicon'
 
let App = () => <div>
  <Octicon mega spin name="sync"/>
</div>
 
render(<App/>, document.querySelector('#app'))

Required props

Prop Description
name The name of an icon in the Octicons set, e.g. 'trashcan'

Other props

Prop Description
className An additional class name for the element rendered by the component
mega If true, a double-size icon will be displayed
spin If true, the icon will spin

MIT licensed

Readme

Keywords

Package Sidebar

Install

npm i etch-octicon

Weekly Downloads

6

Version

2.0.0

License

MIT

Last publish

Collaborators

  • joefitzgerald
  • simurai