Skip to content

Allow image url for icons #4030

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

Open
Akryum opened this issue Apr 30, 2025 · 1 comment
Open

Allow image url for icons #4030

Akryum opened this issue Apr 30, 2025 · 1 comment
Labels
enhancement New feature or request triage v3 #1289

Comments

@Akryum
Copy link
Contributor

Akryum commented Apr 30, 2025

Description

In case we need to pass an image URL to any component with icons (for example Button), we currently need to use slots when they are available (which is not always the case, for example the input icon of CommandPalette). It would be helpful if the Icon component could accept an URL and use #build/ui-image-component instead.

Example use case: allowing users to upload/set their own icons.

Image

Additional context

No response

@Akryum Akryum added enhancement New feature or request triage v3 #1289 labels Apr 30, 2025
@benjamincanac
Copy link
Member

Why don't you use the avatar field to achieve that? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants