0.0.26 • Published 1 year ago
@cozy-blog/svelte-notion-page v0.0.26
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 year ago
0.0.25
1 year ago
0.0.24
1 year ago
0.0.21
1 year ago
0.0.22
1 year ago
0.0.23
1 year ago
0.0.20
1 year ago
0.0.19
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.10
2 years ago
0.0.12
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.5
2 years ago
0.0.6
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago