> For AI agents: the complete documentation index is available at https://rspress.rs/llms.txt, the full documentation bundle is available at https://rspress.rs/llms-full.txt.

# Head

The Head component lets you inject custom head content (built on [unhead](https://www.npmjs.com/package/unhead)).

If you prefer declaring head entries as objects, or need to compute them from component state and props, use the [`useHead`](https://rspress.rs/ui/hooks/use-head.md) hook.

## Usage

```mdx title="index.mdx"
import { Head } from '@rspress/core/runtime';

<Head>
  <meta property="og:description" content="Out-of-the-box Rspack build tools" />
  <link rel="canonical" href="https://example.com" />
</Head>
```


Use it inside MDX or React pages to add meta tags, canonical links, Open Graph data, favicons, and more.
