Transformicons for React.
In your console run:
npm install react-transformicons
Add the following module to your webpack.config.js:
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['es2015', 'react']
}
}
},
{
test: /\.css$/,
use: [
{
loader: 'style-loader'
},
{
loader: 'css-loader',
options: {
localIdentName: '[local]',
modules: true
}
}
]
}
]
}import React from 'react';
import ReactDOM from 'react-dom';
import { MenuIcon } from 'react-transformicons';
ReactDOM.render(
<MenuIcon animation="butterfly" />,
document.getElementById('root')
);- Menu Icons
- Grid Icons
- Add Icons
- Remove Icons
- Contact Icons
- Form Icons
- Video Icons
- Scroll Icon
- Loader Icon
Provides with Menu icons.
animation- string, optional - Sets the menu animation type. In case this parameter is not provided, it will default tobutterfly. Values available:butterflyminusx-crossarrow-uparrow-360-leftarrow-left
isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with Grid icons.
animation- string, optional - Sets the menu animation type. In case this parameter is not provided, it will default torearrange. Values available:rearrangecollapse
isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with Add icons.
animation- string, optional - Sets the menu animation type. In case this parameter is not provided, it will default tominus. Values available:minuscheck
isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with Remove icons.
animation- string, optional - Sets the menu animation type. In case this parameter is not provided, it will default tocheck. Values available:checkchevron-leftchevron-rightchevron-downchevron-up
isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with Contact icons.
animation- string, optional - So far, the only available animation isemail.isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with Form icons.
animation- string, optional - So far, the only available animation issearch.isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with Video icons.
animation- string, optional - So far, the only available animation isplay.isActive- boolean, optional - Sets initial state for the button. Defaults tofalse.
Provides with a scroll icon.
Provides with a Loader icon.
We welcome and appreciate contributions!