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

docs(icon): add link to theming icons section #1571

Merged
merged 4 commits into from
Mar 27, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/content/2.components/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ props:
You won't be able to use any icon in the `name` prop here as icons are bundled using [egoist/tailwindcss-icons](https://github.com/egoist/tailwindcss-icons), read more about this in [Theming](/getting-started/theming#icons).
qin-guan marked this conversation as resolved.
Show resolved Hide resolved
::

::callout{icon="i-heroicons-light-bulb"}
Don't forget to specify the icon pack that you are using in `nuxt.config.ts`! See [here](/getting-started/theming#collections) for more information.
qin-guan marked this conversation as resolved.
Show resolved Hide resolved
::

### Dynamic

You can use the `dynamic` prop to enable dynamic icon loading. This will use [`nuxt-icon`](https://github.com/nuxt-modules/icon) instead and allow you to use any icon from [Iconify](https://iconify.design/) as well as the `{collection_name}:{icon_name}` pattern.
Expand Down
Loading