A preview of the component would be a nice functionality #921
Replies: 3 comments 2 replies
-
Hi @AhmedSeraje are you thinking of something like a Storybook, meaning that you could see the designed components, and maybe switch between various states like color / error / pressed / etc? I spoke with author of django-viewcomponent (@michael-yin) maybe half a year ago (?) when he mentioned he was planning on making the preview feature into a standalone package. I think that's now https://github.com/rails-inspire-django/django-lookbook. Don't know, however, if it'll work with django-components. @AhmedSeraje if you give django-lookbook a try, do let me know if it works with django-components! 👀 If so, we could add this info to the documentation, to show people how to use the lookbook to preview their components. |
Beta Was this translation helpful? Give feedback.
-
I had done a PoC study about this https://github.com/burakyilmaz321/django-components-storybook. I haven't developed it for a long time, but it's possible to integrate Storybook with a Django component. |
Beta Was this translation helpful? Give feedback.
-
Apologies for not getting back to this! yes @JuroOravec that is exactly what I was thinking :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A functionality such as the preview component in django-viewcomponent (https://testdriven.io/blog/django-reusable-components/#previewing-components) would be very welcomed :) Will easily help in speeding up the development
Beta Was this translation helpful? Give feedback.
All reactions