The Head component lets you render elements into the document <head> on web, and integrates with native platform features like Apple Handoff and Spotlight Search on iOS.
app/blog/[slug].tsx
| Prop | Type | Description |
|---|---|---|
children | ReactNode | Standard HTML head elements like <title>, <meta>, <link>, etc. |
The Head component accepts standard HTML head elements:
<title> - Page title<meta> - Meta tags (description, Open Graph, Twitter Cards, etc.)<link> - Stylesheets, favicons, preload hints<script> - External scripts<style> - Inline stylesUse loader data or component state to set dynamic metadata:
app/products/[id].tsx
On web, Head renders its children directly into the document’s <head> element. Multiple Head components can be used across your app - they will all contribute to the final head content.
On iOS, Head integrates with native platform features:
Enable these features using special meta properties:
| Meta Property | Description |
|---|---|
expo:handoff | Set to "true" to enable Apple Handoff for this page |
expo:spotlight | Set to "true" to index this page in iOS Spotlight Search |
On Android, Head currently has no effect. Native metadata features may be added in future versions.
For consistent metadata across your app, create a wrapper component:
features/HeadInfo.tsx
Use it in your pages:
Edit this page on GitHub.