You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,28 @@ Then you can use the icons like this:
181
181
</template>
182
182
```
183
183
184
+
You can also pass a full custom `IconifyJSON` object:
185
+
186
+
```ts
187
+
exportdefaultdefineNuxtConfig({
188
+
modules: [
189
+
'@nuxt/icon'
190
+
],
191
+
icon: {
192
+
customCollections: [
193
+
{
194
+
prefix: 'paid-icons',
195
+
icons: {
196
+
'nuxt': { body: '<path d="M281.44 ... />' },
197
+
},
198
+
width: 512,
199
+
height: 512,
200
+
}
201
+
],
202
+
},
203
+
})
204
+
```
205
+
184
206
Note that custom local collections require you to have a server to serve the API. When setting `ssr: false`, the provider will default to the Iconify API (which does not have your custom icons). If you want to build a SPA with server endpoints, you can explicitly set `provider: 'server'`:
0 commit comments