collapsible-content
v2.0.0
Published
custom element for collapsible content
Downloads
3
Readme
Collapsible Content
Usage
<collapsible-content open>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer rutrum, orci vestibulum ullamcorper
ultricies.
</collapsible-content>
Demo
- https://collapsible-content.now.sh/
Attributes
open
- setup
open
as default state of collapsible-content
observe
- if you need to handle dynamic content, add
observe
attribute.
Properties
get open
set open
- value can be
true
orfalse
Events
collapsible-content-open
- you can read state from
event.detail