Re-usable Components Library #776
-
Hi, I'm looking for a tool that allows me to create reusable components. At first in React. I know that these are early questions and concerns and the responsibility of the build of the application that will use this Component Lib, but beforehand I bring this question that I would also like to know if Morfeo covers it and how or what strategy would be more appropriate. I got to Morfeo due to this apparent promise of being a tool to build a Design System / UI Components Library, so that's why I come here because I didn't find anything in the Documentation that makes this path possible. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @AdsonCicilioti, During the last months, morfeo have been significant changes, and all the requirements that you are looking for are now in the box:
Unfortunately, most of those improvements have just been completed, and we need time to update the documentation. We are preparing a new website to document all new features from morfeo. |
Beta Was this translation helpful? Give feedback.
-
@AdsonCicilioti You can also find the the issue about the docs update here #707 |
Beta Was this translation helpful? Give feedback.
-
I miss at least one example of how to create props for a React component, for example, based on variants and/or media-queries. Here was the only prop example they used but based on two static choices. Despite being an apprentice, I manage to generate types based on Themas/Slices objects, but I'm afraid I'm missing something or not following the correct path to do this. I'm really looking forward to new documentation. |
Beta Was this translation helpful? Give feedback.
Hello @AdsonCicilioti,
we think that one of the most common use cases for morfeo will be a reusable component library, so we will surely document how to properly set an npm package for this purpose and/or provide an example project.
As @andreaSimonePorceddu said, we're working on making Morfeo a build-time solution, this approach is working but it's in alpha stage so I'd not recommend you to jump on it now - but if you don't want to wait or you don't care about the build time optimization you can already build a component library using morfeo at runtime.
I don't see any real difference between using morfeo directly on a project or making a UI library and then using this library inside the…