unjs / unhead

Unhead is the any-framework document head manager built for performance and delightful developer experience.
https://unhead.unjs.io
MIT License
642 stars 41 forks source link

Unhead

NPM version NPM Downloads GitHub stars

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

Highlights

Docs

Visit the documentation site for guides and API references.

Install

npm i unhead

Quick Setup

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.' },
  ],
})

Demos

Sponsors

License

MIT License © 2022-PRESENT Harlan Wilton