๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
DemoInstallSign in
Socket

vue-notion

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-notion

An unofficial Notion renderer

0.1.8-beta
Source
npm
Version published
Weekly downloads
763
-54.28%
Maintainers
1
Weekly downloads
ย 
Created
Source
vue-notion

An unofficial Notion renderer

Features ยท Install ยท Example ยท Docs ยท Credits

Package version Downloads per month MIT license Follow on Twitter

A Vue renderer for Notion pages. Use Notion as CMS for your blog, documentation or personal site.

vue-notion was ported to Vue from react-notion (developed by Splitbee ๐Ÿ โ€“ a fast, reliable, free, and modern analytics for any team)

โš ๏ธ This package doesn't handle the communication with the API. Check out notion-api-worker from Splitbee for an easy solution.

Created by Jannik Siebert

Features

๐ŸŽฏ Accurate โ€“ Results are almost identical

๐ŸŽจ Custom Styles โ€“ Styles are easily adaptable. Optional styles included

coming soon ๐Ÿ”ฎ Code Highlighting โ€“ Automatic code highlighting with prismjs

coming soon ๐ŸŒŽ SSR / Static Generation Support โ€“ Functions to work with Nuxt and other frameworks

Install

npm install vue-notion

How To

Demo

Check out the demo โœจ

Docs

The full NotionRenderer API specification is available at docs/API.md.

Minimal Example

We can store the API response in a .json file and import it.

<template>
  <NotionRenderer :blockMap="blockMap" />
</template>

<script>
import { NotionRenderer } from "vue-notion";
import response from "./load-page-chunk-response.json"; // https://www.notion.so/api/v3/loadPageChunk
const blockMap = response.recordMap.block;

export default {
  components: {
    NotionRenderer,
  },
  data() {
    return { blockMap };
  },
};
</script>

A working example using Nuxt can be found inside the example directory.

Sites using vue-notion

List of pages that are using this library.

  • StorePreviewer
  • ...if you're using vue-notion, we'd be happy to feature you here

Supported Blocks

Most common block types are supported. We happily accept pull requests to add support for the missing blocks.

Block TypeSupportedNotes
Textโœ… Yes
Headingโœ… Yes
Imageโœ… Yes
Image Captionโœ… Yes
Bulleted Listโœ… Yes
Numbered Listโœ… Yes
Quoteโœ… Soon
Calloutโœ… Yes
Columnโœ… Yes
iframeโœ… Soon
Videoโœ… SoonOnly embedded videos
Dividerโœ… Soon
Linkโœ… Yes
Codeโœ… SoonHighlighting coming soon
Web Bookmarkโœ… Soon
Toggle Listโœ… Soon
Page Linksโœ… Yes
Headerโœ… YesEnable with fullPage
DatabasesโŒ Not planned
CheckboxโŒ Not planned
Table Of ContentsโŒ Not planned

Credits

FAQs

Package last updated on 17 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts