@selvaprasanth/notion-cms
v1.2.1
Published
Notion CMS renderer for React and Next.js
Maintainers
Readme
Notion CMS
A simple React-based CMS library for fetching and rendering Notion content.
Installation
Since this is a local package in a monorepo-style structure:
npm install ./packages/notion-cmsUsage
NotionBlog
import { NotionBlog } from 'notion-cms';
function MyBlog() {
return (
<NotionBlog
token={process.env.NOTION_TOKEN}
databaseId={process.env.NOTION_DATABASE_ID}
/>
);
}NotionPage
import { NotionPage } from 'notion-cms';
function MyPage({ pageId }) {
return (
<NotionPage
token={process.env.NOTION_TOKEN}
pageId={pageId}
/>
);
}