TodoItem

1. Notion original

2. Notion API

Partial output of src/routes/[slug]/notion-export.js
{
      "object": "block",
      …
      "type": "to_do",
      "to_do": {
        "text": [
          {
            "type": "text",
            "text": {
              "content": "Remember the milk",
              "link": null
            },
            "annotations": {
              "bold": false,
              "italic": false,
              "strikethrough": false,
              "underline": false,
              "code": false,
              "color": "default"
            },
            "plain_text": "Remember the milk",
            "href": null
          }
        ],
        "checked": false
      }
    }
  javascript

3. Svelte output

Partial output of src/routes/[slug].svelte
<TodoItem checked={false} block-props={{…}}>Remember the milk</TodoItem>
  html

4. Example rendering

Rendered byTodoItem.svelte
Remember the milk
 
Fancy horizontal divider

🏠 Browse the docs ⚘

High-level Discussion

Turn-intoable Block Components

Toggle Headings (not yet implemented)

Layout-only Components

Page-level Components

Annotation Components

bold → <strong>

italic → <em>

strikethrough → <s>

Other Components