react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Add support for Table columns & headers

Open wustep opened this issue 11 months ago • 2 comments
trafficstars

Description

Right now, react-notion-x assumes that the first row is always the header, but in Notion you can customize either:

  • no header at all
  • 1st row is header
  • 1st column is header
  • 1st row and first column are headers

This adds support for these, removing the default first-row-as-header.

Notion Test Page ID

https://www.notion.so/wustep/Tables-1495cb08cf2c804f977af6108cbd4fc8

before

CleanShot 2024-11-25 at 15 37 53@2x

localhost w/ changes vs notion prod

CleanShot 2024-11-25 at 15 33 31@2x

wustep avatar Nov 25 '24 20:11 wustep

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-notion-x ✅ Ready (Inspect) Visit Preview Nov 25, 2024 8:37pm
react-notion-x-minimal-demo ✅ Ready (Inspect) Visit Preview Nov 25, 2024 8:37pm

vercel[bot] avatar Nov 25 '24 20:11 vercel[bot]

@transitive-bullshit ping ;)

wustep avatar Feb 01 '25 19:02 wustep