Slick SVG Icons is a lightweight and elegant collection of SVG icons designed for seamless integration into React.js projects. This package provides a simple and efficient way to import and use scalable vector icons in your web applications. Built with modularity in mind, it ensures optimized performance and easy customization while maintaining a sleek and modern aesthetic.
β
Easy to Import & Use β Simplified syntax for hassle-free integration.
β
Optimized for React.js β Supports JSX-based rendering.
β
Lightweight & Scalable β SVG-based, ensuring crisp visuals on any screen.
β
Customizable β Adjust colors, sizes, and styles effortlessly.
β
Tree-shakable β Only includes the icons you use, keeping your bundle size small.
Install the package using npm or yarn:
npm install slick-svg-iconsor
yarn add slick-svg-iconsImport and use any icon in your React component:
import { ArrowRight } from "slick-svg-icons";
function App() {
return <ArrowRight size={32} color="red" />;
}
export default App;Each icon component accepts the following props:
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 24 |
Defines the width & height of the icon |
| color | string | currentColor |
Sets the stroke or fill color |
slick-svg-icons/
βββ src/ # Source files
β βββ icons/ # Folder containing individual SVG components
β β βββ ArrowRight.tsx # Example icon component
β β βββ Home.tsx # Example icon component
β β βββ User.tsx # Example icon component
β β βββ index.ts # Exports all icons
β βββ index.ts # Main entry point for the package
βββ dist/ # Compiled output (ignored in Git, auto-generated)
βββ examples/ # Example projects or usage demos
βββ tests/ # Unit tests for components (optional)
βββ package.json # NPM package metadata
βββ tsconfig.json # TypeScript configuration
βββ README.md # Documentation
βββ .gitignore # Ignoring unnecessary files
βββ .npmignore # Ignoring files not needed in the published package
βββ rollup.config.js / vite.config.js # Build configuration (Rollup/Vite for bundling)
- Clone the repository:
git clone https://github.com/your-username/slick-svg-icons.git
- Install dependencies:
cd slick-svg-icons npm install - Start development:
npm run dev
- Run tests:
npm run test - Submit a pull request with improvements or new icons.
This project is licensed under the MIT License.
If you find this package helpful, consider starring the repository and sharing it with others. π