
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@bolttech/atoms-accordion
Advanced tools
A simple accordion component for displaying collapsible content.
A simple accordion component for displaying collapsible content.
Use the package manager npm or yarn to install the component.
npm install @bolttech/frontend-foundations @bolttech/atoms-accordion
or
yarn add @bolttech/frontend-foundations @bolttech/atoms-accordion
The Accordion
component accepts the following properties:
Prop | Type | Description |
---|---|---|
headerText | string | The text to be displayed as the accordion header. |
showContent | boolean | Controls whether the content is shown or hidden. |
contentText | string | The text to be displayed as the accordion content. |
disabled | boolean | Disables the accordion interaction when set to true . |
icon | string | The name of the icon to be displayed next to the header text. |
onClick | function | Callback function to toggle the showContent state. |
id | string | An optional identifier to differentiate between multiple instances of the accordion (for testing, etc.). |
import React, { useState } from 'react';
import { Accordion } from '@bolttech/atoms-accordion';
import { bolttechTheme } from '@bolttech/frontend-foundations';
const ExampleComponent = () => {
const [showContent, setShowContent] = useState(false);
const handleToggleContent = (value) => {
setShowContent(value);
};
return (
<BolttechThemeProvider theme={bolttechTheme}>
<Accordion headerText="Accordion Header" showContent={showContent} contentText="Accordion Content" icon="expand_more" onClick={handleToggleContent} id="unique-accordion-id" />
</BolttechThemeProvider>
);
};
export default ExampleComponent;
Contributions are welcome! For any bug fixes, improvements, or new features, please open an issue or submit a pull request.
Please make sure to follow the code standards and test your changes before submitting.
FAQs
A simple accordion component for displaying collapsible content.
The npm package @bolttech/atoms-accordion receives a total of 148 weekly downloads. As such, @bolttech/atoms-accordion popularity was classified as not popular.
We found that @bolttech/atoms-accordion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.