Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@aboutbits/react-material-icons
Advanced tools
This package includes all Material Icons as reusable React components.
First, you have to install the package:
npm install @aboutbits/react-material-icons
Second, you can use the icons in you React application like this:
import React from 'react'
import IconCached from '@aboutbits/react-material-icons/dist/IconCached'
const MyCommponent = () => {
return (
<IconCached/>
);
}
SVG related parameters like height and width can be passed as props.
To import the different variants of an icon you can add the variants as a postfix:
Icon10k
> Default filledIcon10kOutlined
> OutlinedIcon10kRounded
> RoundedIcon10kSharp
> SharpIcon10kTwoTone
> Tow toneTo clear the directory with the existing icons before regenerating them:
npm run clear
To generate the components, simply run the following command:
npm run generate
To publish the package commit all changes and push them to master. Then run one of the following commands locally:
npm version patch
npm version minor
npm version major
About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.
For support, please contact info@aboutbits.it.
The MIT License (MIT). Please see the license file for more information.
FAQs
Material design icon components for React
We found that @aboutbits/react-material-icons 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.