
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-chip
Advanced tools
A versatile React chip component for displaying tags or small interactive elements.
A versatile React chip component for displaying tags or small interactive elements.
Use the package manager npm or yarn to install the component.
npm install @bolttech/frontend-foundations @bolttech/atoms-chip
or
yarn add @bolttech/frontend-foundations @bolttech/atoms-chip
The Chip
component accepts the following properties:
Prop | Type | Description |
---|---|---|
textChip | string | The text content of the chip. |
iconLeft | string | The name of the icon to be displayed on the left side of the chip. |
iconRight | string | The name of the icon to be displayed on the right side of the chip. |
sizeVariant | string | The size variant of the chip (e.g., 'small' , 'medium' , 'large' ). |
fullWidth | boolean | Boolean representing if the Chip is full width. |
disabled | boolean | Disables the chip interaction when set to true . |
selected | boolean | Determines whether the chip is selected or not. |
onClick | function | Callback function to handle the chip click event. |
dataTestId | string | The data-testid attribute for testing. |
import React, { useState } from 'react';
import { Chip } from '@bolttech/atoms-checkbox';
import { bolttechTheme, BolttechThemeProvider } from '@bolttech/frontend-foundations';
const ExampleComponent = () => {
const [isChipSelected, setIsChipSelected] = useState(false);
const handleChipClick = (isSelected) => {
setIsChipSelected(isSelected);
};
return (
<BolttechThemeProvider theme={bolttechTheme}>
<Chip textChip="Tag Example" iconLeft="local_offer" sizeVariant="small" disabled={false} selected={isChipSelected} onClick={handleChipClick} dataTestId="custom-chip" fullWidth={true} />
</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 versatile React chip component for displaying tags or small interactive elements.
The npm package @bolttech/atoms-chip receives a total of 84 weekly downloads. As such, @bolttech/atoms-chip popularity was classified as not popular.
We found that @bolttech/atoms-chip 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.
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.