0.0.21-alpha • Published 5 months ago
@ybot1122/toby-ui v0.0.21-alpha
toby-ui
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
- 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",
],
}
Adding a new Component
- 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.
Publish and Release
- Make a PR and merge to bump the version in package.json
- In GitHub, create release.
npm login
npm publish
0.0.20-alpha
6 months ago
0.0.21-alpha
5 months ago
0.0.19-alpha
6 months ago
0.0.18-alpha
6 months ago
0.0.15-alpha
6 months ago
0.0.17-alpha
6 months ago
0.0.16-alpha
6 months ago
0.0.14-alpha
6 months ago
0.0.13-alpha
6 months ago
0.0.10-alpha
7 months ago
0.0.11-alpha
7 months ago
0.0.9-alpha
7 months ago
0.0.5-alpha
7 months ago
0.0.12-alpha
7 months ago
0.0.10-alpha.2
7 months ago
0.0.10-alpha.1
7 months ago
0.0.6-alpha
7 months ago
0.0.7-alpha
7 months ago
0.0.8-alpha
7 months ago
0.0.4-alpha
7 months ago
0.0.3-alpha
8 months ago
0.0.2-alpha
8 months ago
0.0.1-alpha
8 months ago