Socket
Socket
Sign inDemoInstall

@exmg/exmg-collapsed

Package Overview
Dependencies
11
Maintainers
18
Versions
10
Alerts
File Explorer

Advanced tools

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.


Version published
Maintainers
18
Install size
3.26 MB
Created

Readme

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

FAQs

Last updated on 14 Feb 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc