@daveyplate/next-open-graph
v1.0.1
Published
Provides a simple way to add Open Graph meta tags to your Next.js app.
Downloads
148
Maintainers
Readme
@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"
/>
</>
)
}