8000 feat: enable auto import of icons by safwansamsudeen · Pull Request #345 · frappe/frappe-ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: enable auto import of icons #345

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

safwansamsudeen
Copy link
Contributor

Currently, icons are automatically available in templates, but not in the script. This leads to code like this.

For both ease of access and consistency, this PR enables auto-importing of icons in the script.

Side note: users often import Lucide icons from lucide-vue-next, as that is what autocomplete suggests. But icons from there aren't part of frappe-ui and thus aren't Espresso aligned. This PR will also fix for that trap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0