react-icons-context
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

react-icons-context

Made with create-react-library

NPM JavaScript Style Guide

fork from react-social-icons

Install

npm install --save react-icons-context @material-ui/core
yarn add react-icons-context @material-ui/core

Usage

import React from 'react';

import {
	ReactIconsProvider,
	defaultIcons,
	SocialIcon,
} from 'react-icons-context';

const App = () => {
	return (
		<ReactIconsProvider value={defaultIcons}>
			<SocialIcon network="facebook" />
			<SocialIcon url="https://github.com/MohammedFaragallah" />
		</ReactIconsProvider>
	);
};

TODO

  • [ ] tree shaking support
  • [ ] more default icons
  • [ ] remove material-ui dependency (maybe)

License

MIT © MohammedFaragallah

react-icons-context

Readme

Keywords

none

Package Sidebar

Install

npm i react-icons-context

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

88.1 kB

Total Files

23

Last publish

Collaborators

  • fregos