
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.
@sswahn/components
Advanced tools
A collection of customizable, reusable React components.
Using npm.
npm install @sswahn/components
Import the components.
import {
Checkbox,
Dropdown,
Modal,
Search,
Sidebar,
Tabs
} from '@sswahn/components'
The Checkbox
component allows you to create customizable checkboxes with labels.
<Checkbox
className="custom-checkbox"
label="Check me"
checked={isChecked}
onChange={handleCheckboxChange}
/>
The Dropdown
component provides a simple way to create dropdown menus with various options, including optional icons.
const dropdownOptions = [
{icon: FirstIcon, label: 'option one', onClick: handleOptionOne},
{icon: SecondIcon, label: 'option two', onClick: handleOptionTwo},
{icon: ThirdIcon, label: 'option three', onClick: handleOptionThree}
]
<Dropdown
className="custom-dropdown"
icon={ButtonIcon}
text="Select an option"
options={dropdownOptions}
/>
The Modal
component allows you to create modal dialogs that can be opened and closed programmatically.
<Modal className="custom-modal" open={isOpen} onClose={handleCloseModal}>
{/* Content for the modal */}
</Modal>
The Search
component provides an input field for searching, and it allows you to capture search input changes.
<Search className="custom-search" onChange={handleSearch} placeholder="Search..." />
The Sidebar
component helps you create flexible sidebars with an open and close functionality.
<Sidebar className="custom-sidebar" open={isOpen} onClose={handleCloseSidebar}>
{/* Sidebar content */}
</Sidebar>
The Tabs
component allows you to easily organize content into tabs and switch between them.
const tabOptions = [
{ label: 'Tab 1', content: <p>Content for Tab 1</p> },
{ label: 'Tab 2', content: <p>Content for Tab 2</p> },
{ label: 'Tab 3', content: <p>Content for Tab 3</p> }
]
<Tabs className="custom-tabs" options={tabOptions} />
Components requires React as a peer dependency. You should have React installed in your project with a version compatible with this library.
Components is MIT Licensed
FAQs
A collection of customizable, reusable React components.
The npm package @sswahn/components receives a total of 0 weekly downloads. As such, @sswahn/components popularity was classified as not popular.
We found that @sswahn/components demonstrated a not healthy version release cadence and project activity because the last version was released 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
/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.