
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@flexilla/collapse
Advanced tools
A versatile and interactive collapse component for creating collapsible sections in web applications, conserving space and improving user experience.
The Collapse component is used to hide and show an element.
| Params | Description | Type |
|---|---|---|
| collapseElement | The element to be collapsed/expanded | HTMLElement |
| triggerElement | The element that triggers the collapse | HTMLElement | null |
| options | Additional options for the Collapse | CollapseOptions |
| Option | Description | Type |
|---|---|---|
| orientation | The orientation of the collapse | "vertical" | "horizontal" | "vertical" |
| defaultState | The default state of the collapse | "open" | "close" | "close" |
const options = {
orientation: "vertical",
defaultState: "close",
};
const collapse = new Collapse(
'#myCollapseElement',
options,
'#myTriggerElement',
);
// Show the collapse element
collapse.show();
// Hide the collapse element
collapse.hide();
// Toggle the collapse element
collapse.toggle();
FAQs
A versatile and interactive collapse component for creating collapsible sections in web applications, conserving space and improving user experience.
The npm package @flexilla/collapse receives a total of 10 weekly downloads. As such, @flexilla/collapse popularity was classified as not popular.
We found that @flexilla/collapse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.