unhead
Get started with Unhead by installing the dependency to your project.
Using Vue? Check out the Vue integration.
Using Nuxt? Unhead is already built-in! Check out the Nuxt docs.
unhead
dependency to your project:yarn add unhead
import { createHead } from 'unhead'
// Create a global head instance
const head = createHead()
useHead
composable to manage your head.import { useHead } from 'unhead'
useHead({
title: 'My awesome site'
})
Unhead provides out-of-the-box configuration for unplugin-auto-import.
import { unheadComposablesImports } from 'unhead'
export default defineConfig({
plugins: [
AutoImport({
imports: [
unheadComposablesImports[0],
],
}),
]
})
Your app is now setup for head management, congrats! 🎉
Try next: