From 57c3023909d5bbd684f0f51e34efd7faacd84135 Mon Sep 17 00:00:00 2001 From: David De Sloovere Date: Wed, 12 Jul 2023 14:12:20 +0200 Subject: [PATCH] docs: add `nuxt.config.ts` `ui` entry example (#407) Co-authored-by: Benjamin Canac --- docs/content/1.getting-started/2.installation.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/content/1.getting-started/2.installation.md b/docs/content/1.getting-started/2.installation.md index 8df1a543..304901ec 100644 --- a/docs/content/1.getting-started/2.installation.md +++ b/docs/content/1.getting-started/2.installation.md @@ -105,7 +105,19 @@ You can also add the following to your `settings.json` to enable IntelliSense wh | `prefix` | `u` | Define the prefix of the imported components. | | `global` | `false` | Expose components globally. | | `icons` | `['heroicons']` | Icon collections to load. | -| `safelistColors` | `['primary']` | Force safelisting of colors. | +| `safelistColors` | `['primary']` | Force safelisting of colors to need be purged. | + +Configure options in your `nuxt.config.ts` as such: + +```ts [nuxt.config.ts] +export default defineNuxtConfig({ + modules: ['@nuxthq/ui'], + ui: { + global: true, + icons: ['mdi', 'simple-icons'] + } +}) +``` ## Edge