--- title: useHead description: useHead customizes the head properties of individual pages of your Nuxt app. links: - label: Source icon: i-simple-icons-github to: https://github.com/unjs/unhead/blob/main/packages/unhead/src/composables/useHead.ts size: xs --- The [`useHead`](/docs/api/composables/use-head) composable function allows you to manage your head tags in a programmatic and reactive way, powered by [Unhead](https://unhead.unjs.io). If the data comes from a user or other untrusted source, we recommend you check out [`useHeadSafe`](/docs/api/composables/use-head-safe). :read-more{to="/docs/getting-started/seo-meta"} ## Type ```ts useHead(meta: MaybeComputedRef): void ``` Below are the non-reactive types for [`useHead`](/docs/api/composables/use-head) . ```ts interface MetaObject { title?: string titleTemplate?: string | ((title?: string) => string) base?: Base link?: Link[] meta?: Meta[] style?: Style[] script?: Script[] noscript?: Noscript[] htmlAttrs?: HtmlAttributes bodyAttrs?: BodyAttributes } ``` See [@unhead/schema](https://github.com/unjs/unhead/blob/main/packages/schema/src/schema.ts) for more detailed types. ::callout The properties of `useHead` can be dynamic, accepting `ref`, `computed` and `reactive` properties. `meta` parameter can also accept a function returning an object to make the entire object reactive. :: ## Params ### `meta` **Type**: `MetaObject` An object accepting the following head metadata: - `meta`: Each element in the array is mapped to a newly-created `` tag, where object properties are mapped to the corresponding attributes. - **Type**: `Array>` - `link`: Each element in the array is mapped to a newly-created `` tag, where object properties are mapped to the corresponding attributes. - **Type**: `Array>` - `style`: Each element in the array is mapped to a newly-created `