Universal document <head> tag manager. Tiny, adaptable and full featured.
Status: v1.9 Released Please report any issues 🐛 Made possible by my Sponsor Program 💖 Follow me @harlan_zw 🐦 • Join Discord for help |
useSeoMeta
, useScript
, etc.Visit the documentation site for guides and API references.
npm i unhead
Create the head client somewhere in your root application.
import { createHead } from 'unhead'
createHead()
Then use the composables anywhere you want.
// pages/about.js
import { useHead } from 'unhead'
useHead({
title: 'About',
meta: [
{ name: 'description', content: 'Learn more about us.' },
],
})
MIT License © 2022-PRESENT Harlan Wilton