Files
ui/src/runtime/utils/link.ts
2024-09-27 12:49:32 +02:00

7 lines
481 B
TypeScript

import { reactivePick } from '@vueuse/core'
import type { LinkProps } from '../types'
export function pickLinkProps(link: LinkProps & { ariaLabel?: string, title?: string }) {
return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'ariaLabel', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type', 'title')
}