splitbee / react-notion

A fast React renderer for Notion pages
https://react-notion.com
MIT License
2.85k stars 149 forks source link

Checkboxes do not render #86

Closed plc closed 2 years ago

plc commented 2 years ago

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:

plc commented 2 years ago

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

pyk commented 2 years ago

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

grimalschi commented 2 years ago

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

timolins commented 2 years ago

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.

plc commented 2 years ago

@timolins that would be AMAZING

zhyd1997 commented 2 years ago

@plc @timolins @pyk

PTAL: https://github.com/splitbee/react-notion/pull/92