File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1414The ` NotionRenderer ` component offers a few properties
1515
1616- [ ` blockMap ` ] ( #blockMap ) – required
17+ - [ ` blockOverrides ` ] ( #blockOverrides ) – default: ` {} `
1718- [ ` contentId ` ] ( #contentId ) – default: ` undefined `
1819- [ ` embedAllow ` ] ( #embedAllow ) – default: ` "fullscreen" `
1920- [ ` fullPage ` ] ( #fullPage ) – default: ` false `
@@ -32,6 +33,19 @@ The `NotionRenderer` component offers a few properties
3233– the blocks part of a Notion API response.
3334A list of blocks by their id that may contain contents and properties.
3435
36+ ### ` blockOverrides ` : Object
37+
38+ – the Notion blocks that should be overriden by custom registered Vue components.
39+ A key-value pair Object of Notion block names to Vue component names.
40+
41+ e.g. to use a custom ` code ` component—after registering the ` CustomCode ` Vue component—add the following override, as seen in the ` /example `
42+
43+ ``` js
44+ blockOverrides: {
45+ code: " CustomCode" ,
46+ }
47+ ```
48+
3549### ` contentId ` : String
3650
3751– the id of the block that should be rendered.
You can’t perform that action at this time.
0 commit comments