A Polymer Element showing a stylized icon. Use icon-button if you need click/tap behavior.
<stylized-icon
icon="icons:polymer"
style-class="style-class"
title-tooltip="Text">
</stylized-icon><stylized-icon> provides the following custom properties and mixins for styling:
| Custom property | Description | Default |
|---|---|---|
--stylized-icon-color |
The color for the icon button. | --paper-grey-600 |
--stylized-icon-mixin |
The custom style mixin for the icon button. | none |
--stylized-icon-active-color |
The color for the icon button if active. | --paper-grey-900 |
--stylized-icon-active-mixin |
The custom style mixin for the icon button if active. | none |
--stylized-icon-disabled-color |
The color for the icon button if disabled. | --paper-grey-300 |
--stylized-icon-disabled-mixin |
The custom style mixin for the icon button if disabled. | none |
The styleClass property has the following preconfigured options:
- amber
- black
- blue
- blue-grey
- brown
- cyan
- deep-orange
- deep-purple
- green
- grey
- indigo
- light-blue
- light-green
- lime
- orange
- pink
- purple
- red
- teal
- white
- yellow
Dependencies are installed using Bower:
npm install -g bower
bower install
Tests are run using web-component-tester:
npm install -g web-component-tester
wct
Demonstration and documentation are viewed using polyserve:
npm install -g polyserve
polyserve