0.0.26 • Published 1 month ago

@cozy-blog/svelte-notion-page v0.0.26

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

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}/>
0.0.26

1 month ago

0.0.25

1 month ago

0.0.24

2 months ago

0.0.21

3 months ago

0.0.22

3 months ago

0.0.23

3 months ago

0.0.20

4 months ago

0.0.19

8 months ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.10

1 year ago

0.0.12

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago