UNPKG

@tanstack/vue-router

Version:

Modern and scalable routing for Vue applications

24 lines (23 loc) 635 B
import { Asset } from "./Asset.js"; import { useTags } from "./headContentUtils.js"; import * as Vue from "vue"; //#region src/HeadContent.tsx /** * @description The `HeadContent` component is used to render meta tags, links, and scripts for the current route. * It should be rendered in the `<head>` of your document. */ var HeadContent = Vue.defineComponent({ name: "HeadContent", setup() { const tags = useTags(); return () => { return tags().map((tag) => Vue.h(Asset, { ...tag, key: `tsr-meta-${JSON.stringify(tag)}` })); }; } }); //#endregion export { HeadContent }; //# sourceMappingURL=HeadContent.js.map