Skip to main content

meta

Defines metadata tags for a route, including title, description, Open Graph tags, and other <meta> elements in the document <head>.

Signature

MetaArgs
required
Arguments passed to the meta function
MetaDescriptor[]
An array of meta descriptors. Each descriptor becomes a <meta> or <title> element.

Basic Example

Using Loader Data

Open Graph Tags

Twitter Card

Charset and Viewport

Dynamic Title with Params

Accessing Parent Route Data

Merging Parent Meta

Conditional Meta Based on Location

JSON-LD Structured Data

Error Meta

All Meta Descriptor Types

SEO Best Practices

Best Practices

Pass your loader type to MetaFunction for autocomplete:
Search engines typically display the first 50-60 characters:
Optimal length for search result snippets:
Child route meta overrides parent route meta:

See Also