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 |
- π³ 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 (~1kB minzipped)
- π Add-ons for extra oomph: Capo.js, Tree-shaking,
useSeoMeta
,useScript
, etc. - π 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