Skip to content
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

Add support for adding an icon and a link to gr.Button() #5060

Closed
abidlabs opened this issue Aug 1, 2023 · 0 comments · Fixed by #5080
Closed

Add support for adding an icon and a link to gr.Button() #5060

abidlabs opened this issue Aug 1, 2023 · 0 comments · Fixed by #5080
Assignees
Labels
enhancement New feature or request

Comments

@abidlabs
Copy link
Member

abidlabs commented Aug 1, 2023

It has come up several times, most recently while reviewing #4943, that we should add support for adding an icon to the gr.Button() component. For example, we could add an icon parameter which takes in a filepath or a URL to a svg/png file, which appears before the text itself.

Separately, we should also consider adding a link parameter to gr.Button() to open webpages upon button click. This could potentially be a separate LinkButton custom component

@abidlabs abidlabs added enhancement New feature or request new component Involves creating a new component labels Aug 1, 2023
@abidlabs abidlabs added this to the Component Cleanup milestone Aug 1, 2023
@hannahblair hannahblair self-assigned this Aug 1, 2023
@abidlabs abidlabs removed the new component Involves creating a new component label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants