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.jsonadd the entry for it inexportsarray. - In
rollup.config.mjsadd the path as a file forinput. - In
src/index.tsput 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 loginnpm publish