@playbooks/components
v0.13.0
Published
A collection of React components for Playbooks.
Readme
Overview
A collection of components for React projects.
Installation
npm install @playbooks/componentsUsage
import React from 'react';
import { H6 } from '@ehubbell/html';
import { Animation, useAnimation } from '@playbooks/components';
const AnimatedText = ({ text }) => {
return (
<H6>{text}</H6>
)
};
export { AnimatedText };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:
