nes-block-tableofcontents
v1.0.0
Published
This is a table of contents block for the never-ending-story application
Downloads
4
Readme
nes-block-tableofcontents
This is a table of contents block for the never-ending-story application
Installation
To install this block, you need to run:
yarn add nes-block-nes-block-tableofcontents
Then, go to src/blocks.js
and import+export your block:
// STANDARD BLOCKS //
...
// CUSTOM BLOCKS //
import TableOfContents from 'nes-block-tableofcontents';
// EXPORT LIST //
export default {
...
TableOfContents
}
Now your block should be available for use!
Usage
In your src/assets/json/parcel.json
file, you will want to add a block with the following formatting:
{
"id":1,
"type":"TableOfContents",
"details":
{
"text":"Before you begin Unit 1, please click on the \"Unit 1 Reflection Guide\" link below to download/print a note-taking sheet."
}
}