@zson-design/icons
Install
use npm
npm i @zson-design/icons
or use yarn
yarn add @zson-design/icons
Usage
import React from 'react';
import { render } from 'react-dom';
import { Add, Keyboard, Search } from '@zson-design/icons';
const App = () => {
return (
<>
<Add />
<Keyboard />
<Search />
</>
);
};
render(<App />, document.getElementById('root'));
You can find all the icon components based on React here.
Component Interface
interface IconProps {
className?: string;
onClick?: React.MouseEventHandler<SVGSVGElement>;
style?: React.CSSProperties;
}