Generate useSeoMeta() code for Vue, React, Nuxt, and more. Preview how your page will look in search results and social shares.
Example Blog
https://example.com/blog/build-better-web-apps
Learn the best practices for building modern, performant web applications with the latest frameworks and tools.
Example Blog
How to Build Better Web Apps
Learn the best practices for building modern, performant web applications with the latest frameworks and tools.
Twitter/X uses Open Graph tags as fallback. Configure Twitter-specific overrides below.
import { useSeoMeta } from 'unhead'
useSeoMeta({
title: 'How to Build Better Web Apps',
description: 'Learn the best practices for building modern, performant web applications with the latest frameworks and tools.',
author: 'John Doe',
ogTitle: 'How to Build Better Web Apps',
ogDescription: 'Learn the best practices for building modern, performant web applications with the latest frameworks and tools.',
ogImage: 'https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1200&h=630&fit=crop',
ogImageAlt: 'Code on a computer screen',
ogImageWidth: 1200,
ogImageHeight: 630,
ogType: 'article',
ogUrl: 'https://example.com/blog/build-better-web-apps',
ogSiteName: 'Example Blog',
ogLocale: 'en_US',
articleSection: 'Technology',
articleTag: 'javascript, web development, best practices',
twitterCard: 'summary_large_image',
twitterSite: '@example',
twitterCreator: '@yourhandle',
twitterLabel1: 'Reading time',
twitterData1: '5 min read',
twitterLabel2: 'Written by',
twitterData2: 'John Doe',
robots: 'index, follow',
})The useSeoMeta composable provides a type-safe, flat API for setting meta tags. Unlike manually writing meta tags, it handles all the complexity for you.