mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-17 13:38:07 +01:00
chore(Link): add pickLinkProps util
This commit is contained in:
6
src/runtime/utils/link.ts
Normal file
6
src/runtime/utils/link.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { reactivePick } from '@vueuse/core'
|
||||
import type { LinkProps } from '#ui/types'
|
||||
|
||||
export function pickLinkProps(link: LinkProps) {
|
||||
return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type')
|
||||
}
|
||||
Reference in New Issue
Block a user