A React component that seamlessly integrates DropInBlog into your Next.js application.
npm install @dropinblog/nextjs
# or
yarn add @dropinblog/nextjs
# or
pnpm add @dropinblog/nextjs
- Import the component in your blog page:
import DibBlock from '@dropinblog/nextjs';
- Add the component to your blog page:
export default function BlogPage() {
return (
<div>
<DibBlock blogUrl="/blog" blogId="your-dropinblog-id" />
</div>
);
}
Prop | Type | Required | Description |
---|---|---|---|
blogUrl |
string |
✅ | The base URL path where your blog is mounted (e.g., /blog ) |
blogId |
string |
✅ | Your DropInBlog ID from your DropInBlog dashboard |
fallback |
JSX |
❌ | Fallback component |