base_ui/utils/useHead.ts

41 lines
982 B
TypeScript
Raw Permalink Normal View History

2025-02-01 09:34:55 +00:00
// useHead({
// link: [
// {
// rel: "stylesheet",
// href: "https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css",
// },
// ],
// });
// useHead({
// title: "My App",
// meta: [{ name: "description", content: "My amazing site." }],
// bodyAttrs: {
// class: "test",
// },
// script: [{ innerHTML: "console.log('Hello world')" }],
// });
// plugins/useHeadPlugin.js
// export default defineNuxtPlugin((nuxtApp) => {
// nuxtApp.vueApp.use(() => {
// useHead({
// title: "My Page",
// meta: [{ name: "description", content: "My page description" }],
// bodyAttrs: {
// class: "test",
// },
// });
// });
// });
// title?: string
// titleTemplate?: string | ((title?: string) => string)
// base?: Base
// link?: Link[]
// meta?: Meta[]
// style?: Style[]
// script?: Script[]
// noscript?: Noscript[]
// htmlAttrs?: HtmlAttributes
// bodyAttrs?: BodyAttributes