fix(components): improve generic types (#3331)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Sandro Circi
2025-03-24 21:38:13 +01:00
committed by GitHub
parent 370054b20c
commit b9983549a4
106 changed files with 1203 additions and 535 deletions

View File

@@ -44,6 +44,8 @@ ignore:
- ui.content
external:
- items
externalTypes:
- DropdownMenuItem[][]
props:
items:
- - label: Benjamin
@@ -123,6 +125,8 @@ ignore:
- ui.content
external:
- items
externalTypes:
- DropdownMenuItem[]
items:
content.align:
- start
@@ -169,6 +173,8 @@ ignore:
- ui.content
external:
- items
externalTypes:
- DropdownMenuItem[]
props:
arrow: true
items:
@@ -202,6 +208,8 @@ ignore:
- ui.content
external:
- items
externalTypes:
- DropdownMenuItem[]
props:
size: xl
items:
@@ -244,6 +252,8 @@ ignore:
- ui.content
external:
- items
externalTypes:
- DropdownMenuItem[]
props:
disabled: true
items:
@@ -334,7 +344,9 @@ Inside the `defineShortcuts` composable, there is an `extractShortcuts` utility
```vue
<script setup lang="ts">
const items = [{
import type { DropdownMenuItem } from '@nuxt/ui'
const items: DropdownMenuItem[] = [{
label: 'Invite users',
icon: 'i-lucide-user-plus',
children: [{