@exmg/exm-collapsed
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

<exm-collapsed> Published on npm

Collapsed element contains a slot that can be expanded or collapsed to reveal additional content or information.

Demo

Installation

npm install @exmg/exm-collapsed

Example Usage

Standard

@property({type:  Boolean})
opened = false;
<exm-button @click="${()" =""> (this.opened = !this.opened)}>Open</exm-button>

<exm-collapsed ?opened="${this.opened}">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
  aliqua.
</exm-collapsed>

API

Slots

Name Description
default Default content to display within the collapsible element

Properties/Attributes

Name Type Default Description
opened boolean false The opened state of the component

Methods

Name Description
toggle Toggles the opened state of the component
show Sets the opened state of the component to true
hide Sets the opened state of the component to false

Events

None

CSS Custom Properties

None

Additional references

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.218latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.218
1.0.119
1.0.00

Package Sidebar

Install

npm i @exmg/exm-collapsed

Weekly Downloads

37

Version

1.0.2

License

MIT

Unpacked Size

11 kB

Total Files

11

Last publish

Collaborators

  • licenses
  • livery-ci
  • exm_erwingoossen
  • martinkolkman
  • em-jeroenv
  • nicholas-exmachina
  • marksmits
  • difosfor
  • tylerexmg
  • padamieo_exmachina
  • albert_exm
  • rdrgcnn
  • sander_exmachina
  • joepadmiraal
  • exmachina-ci
  • remonvv
  • kjelles