
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.
@material/react-material-icon
Advanced tools
A React wrapper for Material Icons.
npm install @material/react-material-icon
with Sass:
import '@material/react-material-icon/index.scss';
with CSS:
import '@material/react-material-icon/dist/material-icon.css';
The React material icon package does not come packaged with Google Font's Material Icons. If it was included in the Sass package this would block rendering of the page until the icons download.
There are two different ways to add Material Icons to your website, both of which are documented in Material Icons Documentation. We recommend "Method 1: via Google Web Fonts", because it renders faster, but there can be Flash Of Unstyled Content (FOUC). The code to load Material Icons via Google Web Fonts is pasted here for your convenience.
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
There is a known issue if you turn on the ripple on the Material Icon component. If FOUC occurs, the ripple size will be calculated off of the text width/height. To get around this, give the component a predetermined width/height in your CSS (or inline styles). Original issue documented here.
import MaterialIcon from '@material/react-material-icon';
const MyComponent = () => {
return (
<MaterialIcon icon='menu' />
);
}
Prop Name | Type | Description |
---|---|---|
icon | string | Type of icon to be displayed. |
className | string | Classes to pass on to the root <i> element. |
hasRipple | n/a | If present on element, it will enable the ripple on the icon. |
Please see our Best Practices doc for further reading.
FAQs
Material Components React Material Icon
The npm package @material/react-material-icon receives a total of 1,091 weekly downloads. As such, @material/react-material-icon popularity was classified as popular.
We found that @material/react-material-icon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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.