Collection of Reusable React Components. Please refer to package.json peerDependencies
to see which libraries this component library relies on. This package is zero-dependency.
- Install toby-ui as a Node package:
npm i @ybot1122/toby-ui
- Add toby-ui to tailwind.config.js:
module.exports = {
//...
content: [
// ...
"node_modules/@ybot1122/toby-ui/dist/**/*.js",
],
}
- Create its directory under
src/components
. - Add its implementation file, and storybook file into that directory. You can copy paste the files from HelloWorld as starter template.
- In
package.json
add the entry for it inexports
array. - In
rollup.config.mjs
add the path as a file forinput
. - In
src/index.ts
put any type definitions you will use for the new component.
- Make a PR and merge to bump the version in package.json
- In GitHub, create release.
npm login
npm publish