Universal document tag manager. Tiny, adaptable and full featured.
Status: v1.7 Released Please report any issues ๐ Made possible by my Sponsor Program ๐ Follow me @harlan_zw ๐ฆ โข Join Discord for help |
- ๐ณ Powerful pluggable core with a tiny footprint
- ๐ฃ All the good stuff: deduping, sorting, title templates, template params, etc.
- ๐ชจ Rock-solid DOM updates, fast and tiny (952 bytes minzipped)
- ๐ Add-ons for extra oomph: Capo.js, Hash Hydration and Vite tree-shaking
- ๐ Fully typed with MDN docs
- ๐ค Used by Nuxt with more framework support coming soon.
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