docs: add nuxt.config.ts ui entry example (#407)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
David De Sloovere
2023-07-12 14:12:20 +02:00
committed by GitHub
parent b874bb5061
commit 57c3023909

View File

@@ -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