Socket
Book a DemoInstallSign in
Socket

@exmg/exmg-collapsed

Package Overview
Dependencies
Maintainers
18
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exmg/exmg-collapsed

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

latest
Source
npmnpm
Version
8.2.4
Version published
Maintainers
18
Created
Source

<exmg-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/exmg-collapsed

Example Usage

Standard

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

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

API

Slots

NameDescription
defaultDefault content to display within the collapsible element

Properties/Attributes

NameTypeDefaultDescription
openedbooleanfalseThe opened state of the component

Methods

NameDescription
toggleToggles the opened state of the component
showSets the opened state of the component to true
hideSets the opened state of the component to false

Events

None

CSS Custom Properties

None

Additional references

Keywords

web-components

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts