Socket
Socket
Sign inDemoInstall

@cozy-blog/svelte-notion-page

Package Overview
Dependencies
33
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cozy-blog/svelte-notion-page

> This library is an experimental state. It would be changed rapidly.


Version published
Weekly downloads
2
decreased by-88.24%
Maintainers
2
Install size
15.4 MB
Created
Weekly downloads
 

Readme

Source

svelte-notion-page

This library is an experimental state. It would be changed rapidly.

svetle-notion-page is component who render page using a notion. see example.

Installation

npm install -D svelte-notion-page

Using a customized provider


<script lang="ts">
    import { defaultComponents, NotionComponentProvider, NotionPage } from 'svelte-notion-page';
    import { json } from './post';
    import { setContext } from 'svelte';
    import { PROVIDER_KEY } from 'svelte-notion-page/context';
    import Test from './Test.svelte';

    const provider = new NotionComponentProvider({
        ...defaultComponents,
        paragraph: Test
    });
    setContext(PROVIDER_KEY, provider);
</script>

<NotionPage content={json}/>

FAQs

Last updated on 09 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc