Didit Icons for React
Implementation of the Didit Icons library for React applications.
Installation
pnpm install @diditui/icons-react
or
yarn add @diditui/icons-react
or
npm install @diditui/icons-react
or just download from Github.
How to use
It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
import { ArrowLeftIcom } from "@diditui/icons-react";
const App = () => {
return <ArrowLeftIcom />;
};
export default App;
You can pass additional props to adjust the icon.
<ArrowLeftIcom color="red" size={48} />
Props
| name | type | default |
|---|---|---|
size | Number | 24 |
color | String | currentColor |
stroke | Number | 2 |