An iron-collapse with a trigger section and optional expand/collapse icons.
bower i -S iron-collapse-button # Polymer 2.0 class based
bower i -S iron-collapse-button#^0.4 # Polymer 2.0 hybrid (1.x compatible)
Show/hide collapsible content by filling the trigger and content slots.
<iron-collapse-button>
<div slot="collapse-trigger">Trigger</div>
<div slot="collapse-content">
<ul>
<li>Do this</li>
<li>or that</li>
</ul>
</div>
</iron-collapse-button>
<iron-collapse-button opened>
<div slot="collapse-trigger" class="flex">Flexbox trigger</div>
<div slot="collapse-content">
<ul>
<li>or this</li>
<li>not that</li>
</ul>
</div>
</iron-collapse-button>
Full demo: webcomponents.org | github.
API: webcomponents.org
- Fork it on Github.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request