@playbooks/icons
v0.13.0
Published
A collection of Font Awesome Icons for Playbooks.
Readme
Overview
An opinionated collection of Font Awesome Icons for React projects.
Installation
npm install @playbooks/iconsUsage
Simply add the following to the top of your _app.tsx file:
import React from 'react';
import { FabIcons, FasIcons, Library } from '@playbooks/icons';
import '@fortawesome/fontawesome-svg-core/styles.css';
Library.load({ ...FabIcons, ...FasIcons })
const App = ({ Component, pageProps }: AppProps) => {
...
}
Development
This project uses yalc for local development.
- npm run dev
- switch to project
- npx yalc add @playbooks/components
- After that, this library should hot reload into the consuming application
Scripts
- We've included a couple of helpful scripts for faster development.
- deploy:
npm run deploy -- 'commit message' - publish:
npm run publish -- 'commit message' [major|minor|patch]
Husky
- Husky configuration is setup to lint and format the repo on every commit
- Edit the
.husky/pre-commitfile to change your settings
Author
Notes
To see this library in action, checkout the following projects:
