web-icon

WebJar for web-icon

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

web-icon
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

web-icon
WebJar for web-icon
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/nlarche/web-icon

Download web-icon

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/web-icon/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>web-icon</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/web-icon/
implementation 'org.webjars.npm:web-icon:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/web-icon/
implementation ("org.webjars.npm:web-icon:1.1.1")
'org.webjars.npm:web-icon:jar:1.1.1'
<dependency org="org.webjars.npm" name="web-icon" rev="1.1.1">
  <artifact name="web-icon" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='web-icon', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "web-icon" % "1.1.1"
[org.webjars.npm/web-icon "1.1.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : babel-preset-react jar [6.5.0,7)
org.webjars.npm : react jar [0.14.7,0.15)
org.webjars.npm : react-dom jar [0.14.7,0.15)
org.webjars.npm : rx-dom jar [7.0.3,8)

Project Modules

There are no modules declared in this project.

web-icon

fetch and display favicon from website url

version travis build semantic-release

Demo

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

Versions

Version
1.1.1