Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jifalops/iron-collapse-button

A simple polymer element that wraps an iron-collapse with a trigger section.
https://github.com/jifalops/iron-collapse-button

iron-collapse webcomponents

Last synced: 2 months ago
JSON representation

A simple polymer element that wraps an iron-collapse with a trigger section.

Awesome Lists containing this project

README

        

[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/jifalopsiron-collapse-button)
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/jifalopsiron-collapse-button.svg)](https://vaadin.com/directory/component/jifalopsiron-collapse-button)
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jifalops/iron-collapse-button)

# iron-collapse-button
An iron-collapse with a trigger section and optional expand/collapse icons.

## Installation

```
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)
```

## Usage
Show/hide collapsible content by filling the trigger and content slots.

## Demo

```html

Trigger



  • Do this

  • or that


Flexbox trigger



  • or this

  • not that


```

Full demo:
[webcomponents.org](https://www.webcomponents.org/element/jifalops/iron-collapse-button/demo/demo/index.html)
| [github](https://jifalops.github.io/iron-collapse-button/components/iron-collapse-button/demo/).

API: [webcomponents.org](https://www.webcomponents.org/element/jifalops/iron-collapse-button/iron-collapse-button)

## Contributing

1. Fork it on Github.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request

## License

[MIT](https://opensource.org/licenses/MIT)