mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-05 22:53:52 +01:00
chore(Tabs): extend value / disabled props 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 { TabsRootProps, TabsRootEmits, TabsContentProps } from 'radix-vue'
|
import type { TabsRootProps, TabsRootEmits, TabsContentProps, TabsTriggerProps } 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/tabs'
|
import theme from '#build/ui/tabs'
|
||||||
@@ -11,13 +11,11 @@ const appConfig = _appConfig as AppConfig & { ui: { tabs: Partial<typeof theme>
|
|||||||
|
|
||||||
const tabs = tv({ extend: tv(theme), ...(appConfig.ui?.tabs || {}) })
|
const tabs = tv({ extend: tv(theme), ...(appConfig.ui?.tabs || {}) })
|
||||||
|
|
||||||
export interface TabsItem {
|
export interface TabsItem extends Partial<Pick<TabsTriggerProps, 'disabled' | 'value'>> {
|
||||||
label?: string
|
label?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
avatar?: AvatarProps
|
avatar?: AvatarProps
|
||||||
slot?: string
|
slot?: string
|
||||||
value?: string
|
|
||||||
disabled?: boolean
|
|
||||||
content?: string
|
content?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user