UNPKG

@tanstack/vue-router

Version:

Modern and scalable routing for Vue applications

28 lines (27 loc) 742 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", props: { assetCrossOrigin: { type: [String, Object], default: void 0 } }, setup(props) { const tags = useTags(props.assetCrossOrigin); return () => { return tags().map((tag) => Vue.h(Asset, { ...tag, key: `tsr-meta-${JSON.stringify(tag)}` })); }; } }); //#endregion export { HeadContent }; //# sourceMappingURL=HeadContent.js.map