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

feat: add support for default prefix #6

Merged
merged 2 commits into from
Nov 23, 2024
Merged

feat: add support for default prefix #6

merged 2 commits into from
Nov 23, 2024

Conversation

nhedger
Copy link
Member

@nhedger nhedger commented Nov 22, 2024

This PR introduces a new configuration option that allows setting a default prefix.

This is useful when you choose one icon set as your main icon set and want to avoid prefixing all icon names manually.

For example, setting unicon.defaults.prefix to heroicons allows you to render icons with the following syntax.

+ <x-icon name="clock" />
- <x-icon name="heroicons:clock" />

Closes #1

@nhedger nhedger changed the title feat: support a default prefix feat: add support for default prefix Nov 23, 2024
@nhedger nhedger force-pushed the feat/default-prefix branch from 96de676 to 117a214 Compare November 23, 2024 15:47
@nhedger nhedger marked this pull request as ready for review November 23, 2024 15:51
@nhedger nhedger merged commit cde7bf3 into main Nov 23, 2024
14 checks passed
@nhedger nhedger deleted the feat/default-prefix branch November 23, 2024 15:52
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.

Add support for a default prefix
1 participant