Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@purpurds/accordion
Advanced tools
import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";
import * as AccordionStories from "./src/accordion.stories"; import packageInfo from "./package.json";
Version {packageInfo.version}
Add the dependency to your consumer app like "@purpurds/purpur": "^x.y.z"
In MyApp.tsx
import "@purpurds/purpur/styles";
In MyComponent.tsx
import { Accordion } from "@purpurds/purpur";
export const MyComponent = () => {
return (
<Accordion title="Accordion title" titleVariant="title-100">
<Accordion.Item title="Section title" value="1">
Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
rutrum nulla.
</Accordion.Item>
<Accordion.Item title="Section title" value="2">
Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
rutrum nulla.
</Accordion.Item>
</Accordion>
);
};
export const MyComponent = () => {
return (
<Accordion negative title="Accordion title">
<Accordion.Item title="Section title1">
Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
rutrum nulla.
<a href="https://telia.se">Link1</a>
</Accordion.Item>
<Accordion.Item title="Section title2">
Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
rutrum nulla.
<a href="https://telia.se">Link2</a>
</Accordion.Item>
</Accordion>
);
};
FAQs
Unknown package
The npm package @purpurds/accordion receives a total of 1,106 weekly downloads. As such, @purpurds/accordion popularity was classified as popular.
We found that @purpurds/accordion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.