Files
stream.ui/src/components/VueHead.tsx
2026-01-02 22:00:50 +07:00

15 lines
417 B
TypeScript

import { useHead, UseHeadInput, UseHeadOptions } from "@unhead/vue";
import { defineComponent, toRef } from "vue";
interface VueHeadProps {
input: UseHeadInput;
options?: UseHeadOptions;
}
export const VueHead = defineComponent<VueHeadProps>({
name: "VueHead",
props: ["input", "options"],
setup(props) {
useHead(toRef(props, "input") as any, props.options);
return () => null;
}
});
export default VueHead;