Added page layouts

This commit is contained in:
Francisco Gaona
2025-12-23 09:44:05 +01:00
parent be6e34914e
commit 838a010fb2
26 changed files with 3002 additions and 40 deletions

View File

@@ -4,15 +4,20 @@ import { computed, type HTMLAttributes } from 'vue'
import { cn } from '@/lib/utils'
const props = defineProps<TabsRootProps & { class?: HTMLAttributes['class'] }>()
const emit = defineEmits(['update:modelValue'])
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props
return delegated
})
const handleUpdate = (value: string) => {
emit('update:modelValue', value)
}
</script>
<template>
<TabsRoot v-bind="delegatedProps" :class="cn('', props.class)">
<TabsRoot v-bind="delegatedProps" :class="cn('', props.class)" @update:model-value="handleUpdate">
<slot />
</TabsRoot>
</template>