0.7.1-2 • Published 2 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 install
npm run build
npm login
npm publish
Test and install on projects locally without needing to publish
cd ~/components
npm link
cd ~/my-react-project
npm link @gatsby-tv/components
- Every time you make a change to this repo, make sure to run
npm run build
to update the link.
Run storybook examples and docs
Storybook shows examples on usage and documentation of the components in this library.
npm run storybook