A collection of custom SVG icons for Tawfeer projects.
npm install @tawfeer/iconsimport { ad, emailAd, gift } from '@tawfeer/icons';
// Use with WordPress Icon component
<Icon icon={ ad } />ad- Advertisement iconemailAd- Email advertisement icongift- Gift iconnewspaper- Newspaper icon- And more...
Icons are stored as JS files in the src directory that export React components containing SVG data. Each icon is exported through the main index.js file.
To add a new icon:
- Create a JS file in the
srcdirectory that exports a React component with SVG data - Export it in
index.js - Follow the existing naming conventions
npm run buildGPL-2.0-or-later