splitbee / react-notion

A fast React renderer for Notion pages

Home Page:https://react-notion.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkboxes do not render

plc opened this issue · comments

If you import a Notion page that includes checkboxes, the library will cause an error and not render.

Since the library has no way to actually write back the checkbox interaction back to Notion, I propose it simply reads if the checkbox is checked or not and render that (with no way of toggling it from the library) — so if a checkbox is un-checked, it will simply show an empty checkbox, and if it is checked, it will simply show a checked checkbox.

Proposed fix:

  • Render checkboxes with their current state:
  • If a Notion page has a checkbox that is un-checked, render an empty checkbox
  • If a Notion page has a checkbox that is checked, render a checked checkbox.

Hello, I made a bounty for this issue since we'd love to see it fixed :) https://gitpay.me/#/task/533

commented

Btw for the checkbox, I think it is by design doesn't support a checkbox. The author recommend to use react-notion-x

@pyk not sure, there is "Not planned" label only at databases line.

I did some experiments with the checkbox and it shouldn't be too hard to support. I'll let you know when there is something usable.

@timolins that would be AMAZING