Nsfocus Icons for React
Install
yarn add @nsfocus/icons
Basic Usage
You can import it directly or destructure from @nsfocus/icons
when tree-shaking enabled.
import AlertOutlined from '@nsfocus/icons/AlertOutlined';
import { AlertOutlined } from '@nsfocus/icons';
// import AlertFilled from '@nsfocus/icons/AlertFilled';
// import AlertTwoTone from '@nsfocus/icons/AlertTwoTone';
import { AlertOutlined, AddEquipmentsOutlined } from '@nsfocus/icons';
Component Interface
interface AntdIconProps {
className?: string;
onClick?: React.MouseEventHandler<SVGSVGElement>;
style?: React.CSSProperties;
}
Release
npm run generate
npm run compile
npm publish