mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 09:50:33 +01:00
chore(NavigationMenu): extend value prop from radix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { tv } from 'tailwind-variants'
|
import { tv } from 'tailwind-variants'
|
||||||
import type { NavigationMenuRootProps, NavigationMenuRootEmits } from 'radix-vue'
|
import type { NavigationMenuRootProps, NavigationMenuRootEmits, NavigationMenuItemProps } from 'radix-vue'
|
||||||
import type { AppConfig } from '@nuxt/schema'
|
import type { AppConfig } from '@nuxt/schema'
|
||||||
import _appConfig from '#build/app.config'
|
import _appConfig from '#build/app.config'
|
||||||
import theme from '#build/ui/navigation-menu'
|
import theme from '#build/ui/navigation-menu'
|
||||||
@@ -11,9 +11,8 @@ const appConfig = _appConfig as AppConfig & { ui: { navigationMenu: Partial<type
|
|||||||
|
|
||||||
const navigationMenu = tv({ extend: tv(theme), ...(appConfig.ui?.navigationMenu || {}) })
|
const navigationMenu = tv({ extend: tv(theme), ...(appConfig.ui?.navigationMenu || {}) })
|
||||||
|
|
||||||
export interface NavigationMenuItem extends LinkProps {
|
export interface NavigationMenuItem extends LinkProps, Pick<NavigationMenuItemProps, 'value'> {
|
||||||
label?: string
|
label?: string
|
||||||
value?: string
|
|
||||||
icon?: string
|
icon?: string
|
||||||
avatar?: AvatarProps
|
avatar?: AvatarProps
|
||||||
badge?: string | number | BadgeProps
|
badge?: string | number | BadgeProps
|
||||||
|
|||||||
Reference in New Issue
Block a user