A demo helper component to showcase a Polymer iconset.
**[ This description is mirrored from README.md at [github.com/kcmr/demo-iconset](https://github.com//kcmr/demo-iconset/blob/v1.1.4/README.md) on 2019-05-10 ]**
# <demo-iconset>
[](https://travis-ci.org/kcmr/demo-iconset)
[](https://www.webcomponents.org/element/kcmr/demo-iconset/)
> A demo helper component to showcase a Polymer iconset.
**Demo:** [https://kcmr.github.io/demo-iconset/](https://kcmr.github.io/demo-iconset/)
[](https://kcmr.github.io/demo-iconset/)
This component displays the icons of a Polymer iconset with an input to filter the results and an optional text with the total of icons.
## Installation and usage
Install the component using Bower:
```
bower i -S demo-iconset
```
Import Web Components polyfill:
```html
```
Import the component and the Polymer Iconset to show:
```html
```
Use it!
```html
```
## Compatibility
The component is an Hybrid Polymer element **compatible with Polymer 1.x and 2.x** elements.
It will be migrated to a class-based element in the future.
## Properties
| Property | Type | Description | Default value |
| :--------------- | :------ | :------------------------------ | :------------ |
| iconset | String | Name of the iconset to be shown | |
| iconSize | Number | Size for the icons | 32 |
| showTotal | Boolean | Show the total of icons | false |
| icons (readOnly) | Array | List of icons | |
## Styling
The class "fixed-search" keeps the search input fixed at the top.
The following custom properties and mixins are available for styling:
| Custom property | Description | Default |
| :------------------------------------- | :---------------------------------------------------------------------------- | :------------ |
| --demo-iconset | Empty mixin applied to :host | {} |
| --demo-iconset-primary-color | Primary text color | #000 |
| --demo-iconset-secondary-color | Secondary color used for :focus, :hover and selections | rebeccapurple |
| --demo-iconset-icon-meta | Empty mixin applied to the wrapper of the search input and the total of icons | {} |
| --demo-iconset-icons | Empty mixin applied to the icon list wrapper | {} |
| --demo-iconset-item | Empty mixin applied to each icon list item with the label, icon and input | {} |
| --demo-iconset-item-hover | Empty mixin applied to each icon list item for the :hover state | {} |
| --demo-iconset-item-at-730 | Empty mixin applied to each icon list item at @media (min-width: 730px) | {} |
| --demo-iconset-item-at-1600 | Empty mixin applied to each icon list item at @media (min-width: 1600px) | {} |
| --demo-iconset-item-icon | Empty mixin applied to each icon in the list | {} |
| --demo-iconset-item-input | Empty mixin applied to each input in the list | {} |
| --demo-iconset-item-input-selection | Empty mixin applied to each input in the list for text selection | {} |
| --demo-iconset-item-input-focus | Empty mixin applied to each input in the list for the :focus state | {} |
| --demo-iconset-fixed-search-background | background-color for the search area in fixed mode (:host(.fixed-search)) | #fff |
We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.