[Idea] Use external components in Toolpad #1408
Replies: 5 comments 5 replies
-
Does this mean that the user has to manually define props in |
Beta Was this translation helpful? Give feedback.
-
This seems like a lot of additional manual effort for low reward. If the upside is simply being able to keep the code on my local filesystem, why not allow users to sync custom component code from their GitHub repositories? Something like this: |
Beta Was this translation helpful? Give feedback.
-
Not sure what other alternatives there are, but I've used https://rollupjs.org before and it would probably work well for building. |
Beta Was this translation helpful? Give feedback.
-
I think that this GitHub discussion should also cover one important aspect of the experience:
|
Beta Was this translation helpful? Give feedback.
-
Related to #390 |
Beta Was this translation helpful? Give feedback.
-
Use external components in Toolpad
Toolpad brings a lightweight code editor to create custom components. But the appeal of pro-code is that users are free in choosing their tooling, editors, libraries. We should give users back this freedom by allowing them to build custom components outside of Toolpad, in their local environment. Toolpad should be able to import such components and allow for visually composing UI with them.
Proposal
The user needs to create some sort of manifest that describes the content of their library
The components themselves are created with
createComponent
as we have them now.Create a CLI tool that has the following commands:
This builds and packs the library into a zip file. The user can upload this zipfile to Toolpad to make the components available.
considerations
Beta Was this translation helpful? Give feedback.
All reactions