Skip to content

Commit fe4fe91

Browse files
committed
up
1 parent 9b69825 commit fe4fe91

3 files changed

Lines changed: 22 additions & 6 deletions

File tree

skills/nuxt-ui/SKILL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,14 @@ app.mount('#app')
162162
@import "@nuxt/ui";
163163
```
164164

165+
```vue
166+
<!-- src/App.vue -->
167+
<template>
168+
<UApp>
169+
<RouterView />
170+
</UApp>
171+
</template>
172+
```
173+
165174
> Add `class="isolate"` to your root `<div id="app">` in `index.html`.
166175
> For Inertia: use `ui({ router: 'inertia' })` in `vite.config.ts`.

skills/nuxt-ui/references/guidelines/conventions.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ Custom local collections (Nuxt only):
9898

9999
```ts
100100
// nuxt.config.ts
101-
icon: {
102-
customCollections: [{
103-
prefix: 'custom',
104-
dir: './app/assets/icons'
105-
}]
106-
}
101+
export default defineNuxtConfig({
102+
icon: {
103+
customCollections: [{
104+
prefix: 'custom',
105+
dir: './app/assets/icons'
106+
}]
107+
}
108+
})
107109
```
108110

109111
### Default icon overrides

skills/nuxt-ui/references/recipes/data-tables.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ import type { TableColumn } from '@nuxt/ui'
3939
const search = ref('')
4040
const roleFilter = ref('All')
4141
42+
const rows = ref([
43+
{ name: 'Alice', email: 'alice@example.com', role: 'Admin', status: 'Active' },
44+
{ name: 'Bob', email: 'bob@example.com', role: 'Editor', status: 'Inactive' }
45+
])
46+
4247
const columns: TableColumn[] = [
4348
{ accessorKey: 'name', header: 'Name' },
4449
{ accessorKey: 'email', header: 'Email' },

0 commit comments

Comments
 (0)