All icons from fontawesome as webcomponents.
npm i @qomponent/qui-iconsimport '@qomponent/qui-icons';- tiny
- small
- normal
- large
- ??px
Size can be provided with the size attribute.
Color can be provided with the color attribute or with CSS.
See fontawesome.com
- Use
fas-iconfor solid free - Use
far-iconfor regular free - Use
fab-iconfor brands free
<fas-icon icon="user" size="tiny"></fas-icon>
<fas-icon icon="user" size="small"></fas-icon>
<fas-icon icon="user"></fas-icon>
<fas-icon icon="user" size="large"></fas-icon>
<fas-icon icon="user" size="50px" color="red"></fas-icon>
<far-icon icon="clock" size="tiny"></far-icon>
<far-icon icon="clock" size="small"></far-icon>
<far-icon icon="clock"></far-icon>
<far-icon icon="clock" size="large"></far-icon>
<far-icon icon="clock" size="50px" color="red"></far-icon>
<fab-icon icon="redhat" size="tiny"></fab-icon>
<fab-icon icon="redhat" size="small"></fab-icon>
<fab-icon icon="redhat"></fab-icon>
<fab-icon icon="redhat" size="large"></fab-icon>
<fab-icon icon="redhat" size="50px" color="#ee0000"></fab-icon>To run the example:
npm install
npm startPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.