@blitzjs/meta
TypeScript icon, indicating that this package has built-in type declarations

0.12.0 • Public • Published

@blitzjs/meta

React component for generating Open Graph/etc meta tags for Blitz pages and sites. Designed for Next.js but framework-agnostic.

Usage

yarn add @blitzjs/meta
# npm i @blitzjs/meta

Example for a documentation site:

// import Head from 'next/head'

<Meta
  as={Head} // component to wrap tags in, defaults to React.Fragment
  name="Blitz" // site name
  title="Docs" // page title
  description="The official Blitz documentation" // page description
  image="https://.../card.png" // large summary image URL
  color="#6700eb" // theme color
  manifest="/site.webmanifest" // link to site manifest
/>

All props are optional. If included multiple times, the tags from the last instance will be used.

Prior art:

MIT License

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @blitzjs/meta

    Weekly Downloads

    1

    Version

    0.12.0

    License

    MIT

    Unpacked Size

    31 kB

    Total Files

    13

    Last publish

    Collaborators

    • siddhsuresh
    • dillonraphael
    • mabadir
    • flybayer
    • skn0tt