Code Monkey home page Code Monkey logo

brandon-schabel / react-component-lib-template Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 7.0 708 KB

This is a Storybook 7 React component library template that you can use to develop your own library. Includes a blog post that runs through all the setup if you're curious about the nitty gritty details.

Home Page: https://medium.com/better-programming/build-a-custom-react-component-library-with-storybook-7-beta-and-vite-4-in-2023-c52db4d733c0

JavaScript 8.32% HTML 2.89% TypeScript 13.80% CSS 74.99%
react storybook tailwindcss typescript

react-component-lib-template's People

Contributors

brandon-schabel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-component-lib-template's Issues

Styles are not being shown

Hello brandon-schabel, thanks in advance for the library!

When I linked the project locally, for some reason I am not able to see tailwindcss styles. I thought I was doing the link wrong but when I published the same issue still persists, did you find a way to ship tailwindcss into the components once is published? Thanks

React hooks

Good day sir! Thank you again for this example and the Blog. It was very helpful

I was already able to solve the "cannot find declaration" by placing the "types" in the "exports["."].types"
image

Everything works fine up until I used React Hooks
Here is the screenshot of the error
image

Here is the Code Snippet
image

Do you know where I went wrong?
I did not change anything on this repositories code.

Cannot find module error

Hello sir, the tutorial Blog was excellent and very informative. Thank you so much for sharing your knowledge.

But I ran into some problems that I can't solve.
Whenever I build and link the react-component-library to my local project, then import it, the IDE (VSCode) always throws the following error:

Cannot find module 'react-component-library' or its corresponding type declarations.ts(2307)

I have checked the node_modules of my local project and could confirm that react-component-library do exist.

can you tell me why this happens or what should I check to debug this?

thank you!

ps. I never did any other modifications on the library

image image

thank you for this example

Hey I wonder what would be needed to incorprate this in the pnpm monorepo. I am trying to do just that I am having some issues..

I have other non-ui libraries integrated with projects using: https://preconstruct.tools/
this gives me auto refresh if I change some libs etc..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.