web-icon
fetch and display favicon from website url
var icons = ["https://webpack.github.io/assets/favicon.png", "https://www.npmjs.com", "http://bower.io", "https://angularjs.org", "https://facebook.github.io/react"]
/*
* websites : Array of url (an image or a websites)
* noLink : Disable link on web-icon default false
* grayscale : Display a grayscale image default false
*/
ReactDOM.render(
<WebIconList websites={icons} noLink={false} grayscale={false} />,
document.getElementById('list')
);
/*
* url : url of an image or a websites
* noLink : Disable link on web-icon default false
* grayscale : Display a grayscale image default false
*/
ReactDOM.render(
<WebIcon ulr={icons[0]} noLink={false} grayscale={false} />,
document.getElementById('simple')
);
Todos
- Add zoom on mouseover on a floating div
- Add exemple to readme and gh-pages