0.7.1-2 • Published 4 years ago
@gatsby-tv/utilities v0.7.1-2
Gatsby shared components for React clients
This repo is a collection of common React components written in TypeScript/TSX to be used with React clients for Gatsby.
Usage in other projects
- Install to the project
npm install --save @gatsby-tv/components - Import the components
import { Sidebar, Navbar } from "@gatsby-tv/components";
Publish to npm
npm installnpm run buildnpm loginnpm publish
Test and install on projects locally without needing to publish
cd ~/componentsnpm linkcd ~/my-react-projectnpm link @gatsby-tv/components- Every time you make a change to this repo, make sure to run
npm run buildto update the link.
Run storybook examples and docs
Storybook shows examples on usage and documentation of the components in this library.
npm run storybook