
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@hdoc/react-material-icons
Advanced tools
Simple component for material design icons in your React app.
npm install @hdoc/react-material-icons @material-design-icons/font
Import @material-design-icons/font in your entry file (example: src/main.jsx in Vite):
import "@material-design-icons/font";
:information_source: Check @material-design-icons/font docs for more info.
Then, in your App.jsx or another file:
import { Icon } from "@hdoc/react-material-icons";
function App() {
return (
<>
...
<Icon name="shopping_cart" size="large" variant="outlined" />
</>
);
}
All props are optional unless otherwise specified.
name (required)
The name of the icon.
Type: string
color
The color of the icon.
Type: 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success'
className
Additional class names for extending styles.
Type: string
disabled
Whether the icon is disabled.
Type: boolean
size
Font size for the icon.
Type: 'small' | 'large'
variant
Variant of the icon.
Type: 'outlined' | 'round' | 'sharp' | 'two-tone'
You can customize the color and size of the icon by using the following CSS custom properties:
.any-parent,
.class-to-extend-styles {
--icon-color: black; /* default color */
--icon-color-disabled: gray;
--icon-size: 24px; /* default size */
--icon-small: 18px;
--icon-large: 36px;
/* COLOR VARIANTS */
--primary: lightblue;
--secondary: lightpink;
--error: red;
--warning: orange;
--info: blue;
--success: green;
}
.material-icons
The base styles for the icon
.material-icons-outlined
Styles for the outlined variant
.material-icons-round
Styles for the round variant
.material-icons-sharp
Styles for the sharp variant
.material-icons-two-tone
Styles for the two-tone variant
.material-icons--small
Styles for the small size
.material-icons--medium
Styles for the medium size
.material-icons--large
Styles for the large size
.material-icons--disabled
Styles for the disabled state
.material-icons--primary
Styles for the primary color variant
.material-icons--secondary
Styles for the secondary color variant
.material-icons--error
Styles for the error color variant
.material-icons--warning
Styles for the warning color variant
.material-icons--info
Styles for the info color variant
.material-icons--success
Styles for the success color variant
FAQs
A react component for material icons
We found that @hdoc/react-material-icons 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.