@proicons/react
v4.11.1
Published
ProIcons icon library for ReactJS
Downloads
147
Maintainers
Readme
ProIcons for React
Features
- All icons are available as customizable React components
- Supports ESM tree-shaking
Read the full documentation here
Installation
Install via NPM:
npm install @proicons/react
[!IMPORTANT] This package is ESM-only. To use in CommonJS contexts, use
await import('@proicons/react')
(asynchronous) orrequire('@proicons/react')
in newer Node.js versions.
Usage
All icons are available as React components named in PascalCase and may end in Icon
.
To import the Add Square icon:
import { SearchIcon } from '@proicons/react'
function App() {
return (
<SearchIcon color="red" size={32} />
)
}
Contributing
For more info on how to contribute, please see our contributing guide.