Skip to content
P

@polymer/iron-collapse

Provides a collapsable container

by ricticFree

#1125in UI Libraries
0In stores

Description

iron-collapse is a Polymer web component that creates a collapsible block of content. By default the content starts collapsed, and you show…

Highlights

  • Collapsible content block for Polymer
  • Show or hide with opened or toggle()
  • Animation length set by a custom property
  • Works in HTML files and Polymer 3 elements
  • Demo and tests you can run locally

Ratings & Reviews

No ratings yet

Be the first to rate @polymer/iron-collapse.

People also visit

W

@webcomponents/custom-elements

Custom Elements polyfill by Polymer team

UI Libraries
Launch
R

react-css-collapse

Component-wrapper for collapse animation with css for elements

UI Libraries
Launch
R

react-collapsible

React component to wrap content in Collapsible element

UI Libraries
Launch
R

react-smooth-collapse

React component for animating showing or hiding an element

UI Libraries
Launch
R

react-collapse

Component-wrapper for collapse animation for elements with variable

UI Libraries
Launch
P

@polymer/iron-a11y-announcer

A singleton element that simplifies announcing text to screen readers

UI Libraries
Launch

@polymer/iron-collapse FAQ

What is iron-collapse?

A Polymer web component that wraps content in a block that can be collapsed and expanded.

How do I open and close it?

Set the opened property, or call toggle() on the element.

How do I change the animation speed?

Set the --iron-collapse-transition-duration custom property. It defaults to 300ms.

How do I install it?

The README gives installation steps for plain HTML files and for Polymer 3 elements.

Where can I see a demo?

The README links to a demo and to the documentation.

What are the best @polymer/iron-collapse alternatives?

Popular alternatives to @polymer/iron-collapse include @webcomponents/custom-elements, react-css-collapse and react-collapsible. See all @polymer/iron-collapse alternatives

Developer Stuff

Badges