docs(components): ignore props in ComponentProps

This commit is contained in:
Benjamin Canac
2024-10-17 21:46:53 +02:00
parent c63920d05b
commit dc8cd1e664
11 changed files with 34 additions and 265 deletions

View File

@@ -3,9 +3,29 @@ import { upperFirst, camelCase } from 'scule'
import type { ComponentMeta } from 'vue-component-meta'
import * as theme from '#build/ui'
const props = defineProps<{
const props = withDefaults(defineProps<{
ignore?: string[]
}>()
}>(), {
ignore: () => [
'activeClass',
'inactiveClass',
'exactActiveClass',
'ariaCurrentValue',
'href',
'rel',
'noRel',
'prefetch',
'prefetchOn',
'noPrefetch',
'prefetchedClass',
'replace',
'exact',
'exactQuery',
'exactHash',
'external',
'onClick'
]
})
const route = useRoute()