Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
react-antd-icons
Advanced tools
## Install ```bash yarn add antd-icons yarn add react-antd-icons ```
yarn add antd-icons
yarn add react-antd-icons
First, you should add the icons that you need into the library.
import { library, Alibaba } from 'antd-icons/esm';
library.add(Alibaba);
After that, you can use antd icons in your React components as simply as this:
// examples/simple/pages/index.jsx
import * as React from 'react';
import styles from './index.less';
import { library, Alibaba, Dashboard, Twitter } from 'antd-icons/esm';
import AntdIcon from 'react-antd-icons/esm';
library.add(Alibaba, Dashboard, DashboardFill);
export default class IndexPage extends React.Component {
render() {
return (
<div className={styles.container}>
<AntdIcon type={'alibaba'} />
<AntdIcon type={'dashboard-fill'} />
<AntdIcon type={Twitter} />
</div>
);
}
}
interface IAntdIconProps {
type: string | IconDefinition;
className?: string;
onClick?: React.MouseEventHandler<SVGSVGElement>;
style?: React.CSSProperties;
}
FAQs
## Install ```bash yarn add antd-icons yarn add react-antd-icons ```
The npm package react-antd-icons receives a total of 18 weekly downloads. As such, react-antd-icons popularity was classified as not popular.
We found that react-antd-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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.