1.0.3 • Published 2 years ago

@vitrain/react-icons v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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

  1. Include the whole icon pack:
import * as Icons from '@vitrain/react-icons';

const App = () => (<Icons.Github></Icons.Github>)
  1. Include single icon:
import Github from '@vitrain/icons/lib/Github';

const App = () => (<Icons.Github></Icons.Github>)
  1. Destructure
import {Github} from '@vitrain/react-icons';

const App = () => (<Icons.Github></Icons.Github>)
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago