mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 18:30:35 +01:00
docs: add nuxt.config.ts ui entry example (#407)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b874bb5061
commit
57c3023909
@@ -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. |
|
| `prefix` | `u` | Define the prefix of the imported components. |
|
||||||
| `global` | `false` | Expose components globally. |
|
| `global` | `false` | Expose components globally. |
|
||||||
| `icons` | `['heroicons']` | Icon collections to load. |
|
| `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
|
## Edge
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user