You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An (unofficial) React renderer for Notion pages. It is written in TypeScript. Use it for blogs, documentations or personal sites, while we wait for the official API.
4
+
5
+
This packages does not include an API wrapper. You can find some interesting projects here: [notionapi-agent](https://github.com/dragonman225/notionapi-agent)
4
6
5
7
## Install
6
8
7
9
```bash
8
10
npm install react-notion
9
11
```
10
12
11
-
If you use code blocks and want syntax highlighting, install `primsjs`.
12
-
13
-
```bash
14
-
npm install prismjs
15
-
```
16
-
17
13
## How to use
18
14
19
15
```js
20
16
import { NotionRenderer } from"react-notion";
21
17
import"react-notion/src/styles.css";
22
18
23
19
import"prismjs/themes/prism-tomorrow.css"; // only needed if you use Code Blocks
0 commit comments