TypeScript React Component Library
This library is published on npm
and demonstrates how to write your own React components in TypeScript and publish them as npm
package.
Follow link for published 👉 Setup guide
Features
🤖 Dev Commands
yarn
to install the necessary dependenciesyarn dev
to start developing your componentsyarn update-stories
to update story components in storybook.requires.jsyarn test
to test your componentsyarn lint
to lint your codeyarn lint --fix
to fix linting issues in your codeyarn prepare
to create the production bundleyarn storybook
to start storybook
in development mode (starts as a new process)yarn build-storybook
to create production version of storybook for the project. This can be deployment to platforms such as Vercel, Gatsby, Surge, or Firebase hostingyarn size
tells you size of your library for the production bundle
🚀 Publishing the project to NPM
npm version patch
bump up package versionnpm publish
to publish to npm as private package
📦 Full Component list & functionality TBC...
- Button
- String
- Card
- Form
- Text input
- Custom checkbox input
- Custom file upload input
- Custom select input
- Accordion
- Carousel
- Header component
- Modal component