-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0 beta tracking + feedback #5564
Comments
Thoughts on creating my first custom component:
Can we create single-file templates for common components? It's kind of jarring to see so many different files when you're just getting started. |
From @aliabid94:
|
Thanks @duerrsimon for this feedback!
Tailwind doesn't play well with Gradio themes. I think the better approach would be to use the CSS variables that are also used in the core Gradio components. You can take a look at existing Gradio components to see how to use the CSS variables. Generally, it looks like this:
We'll probably stick to Svelte. Even though I'm primarily backend engineer who tries to stay away from frontend as much as possible, I'll say that the learning curve for Svelte is particularly nice (way easier to pick up than React imo). I've added some resources for learning Svelte to our guide: https://github.com/gradio-app/gradio/wiki/Guide-to-Custom-Components-(Beta)
@pngwn do you have any thoughts on this? |
Oh it looks like @hannahblair is already addressing the first point in this PR: #5750! |
Looking forward to the new components @duerrsimon! Thanks for the comments/questions. |
text_with_attachments_publish.movEDIT: Using this to store assets lol Uploading PDFDemo.mov… |
Did pretty much all of this. Converted the remaining TODOs to issues and added the Thanks again for the feedback @duerrsimon ! |
Place to track all of the bugs, nits, and comments found in the 4.0 branch (
v4
)Pre launch
__call__
method is still calling serialize so it doesn't workgradio_component build
builds the front-endNice to have
gradio cc build
(post launch)Definitely post launch
The text was updated successfully, but these errors were encountered: