useLink
Used to create a link to a route. Generally the RouterLink
component should be used instead of this composable. See the 'UseLink' api reference for more information on the return type.
ts
import { useLink } from '@kitbag/router'
const link = useLink('profile', { userId: 123 })
TIP
Register your router to get the proper types when using this composable.