Socket
Book a DemoInstallSign in
Socket

@blitzjs/meta

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blitzjs/meta

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

latest
npmnpm
Version
0.12.0
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

@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:

  • https://github.com/hackclub/theme/tree/master/packages/meta
  • https://realfavicongenerator.net/
  • https://joshwcomeau.com/snippets/html/html-skeleton
  • https://github.com/garmeeh/next-seo

MIT License

FAQs

Package last updated on 29 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts