@daveyplate/next-open-graph
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@daveyplate/next-open-graph

Description

This package provides a simple way to add Open Graph meta tags to your Next.js application.

Installation

npm install @daveyplate/next-open-graph

Usage

import { OpenGraph } from '@daveyplate/next-open-graph'

export default function MyPage() {
  return (
    <>
        <OpenGraph
            title="My Page"
            description="This is my page"
            image="https://example.com/image.jpg"
            ogType="article"
            twitterCard="summary"
            url="https://example.com/my-page"
            siteName="My Awesome Site"
        />
    </>
  )
}

Package Sidebar

Install

npm i @daveyplate/next-open-graph

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

9.77 kB

Total Files

8

Last publish

Collaborators

  • leakeddave