newspack-icons
v1.0.5
Published
A collection of custom SVG icons for Newspack projects
Readme
Newspack Icons
A collection of custom SVG icons for Newspack projects.
Installation
npm install newspack-iconsUsage
import { ad, emailAd, gift } from 'newspack-icons';
// Use with WordPress Icon component
<Icon icon={ ad } />Available Icons
ad- Advertisement iconemailAd- Email advertisement icongift- Gift iconnewspaper- Newspaper icon- And more...
Development
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
Building
npm run buildLicense
GPL-2.0-or-later
