@vitrain/react-icons
v1.0.3
Published
The icon components for react
Downloads
1
Readme
@vitrain/react-icons
The icon components for react
Install
$ npm install @vitrain/react-icons
or
$ yarn add @vitrain/react-icons
Usage
import React from 'react';
import {Link} from '@vitrain/react-icons';
function App() {
return (
<div className="App">
<Link size={24} color={'blue'}></Link>
</div>
);
}
export default App;
Other ways
- Include the whole icon pack:
import * as Icons from '@vitrain/react-icons';
const App = () => (<Icons.Github></Icons.Github>)
- Include single icon:
import Github from '@vitrain/icons/lib/Github';
const App = () => (<Icons.Github></Icons.Github>)
- Destructure
import {Github} from '@vitrain/react-icons';
const App = () => (<Icons.Github></Icons.Github>)