Skip to main content Notion blocksĀ  for Svelte
Beat Technology AS

Table

This page is generated from a page in Notion database, and is intended to demonstrate the capability of the Table block.

You can view this page in Notion to see that it corresponds well to what is displayed.

You can pick a stylesheet below to change how it renders.

Stylesheet

Example

Row and column headers

AB
1Foo
2Bar

Row headers

AB
1Foo
2Bar

Column headers

AB
1Foo
2Bar

No headers

AB
1Foo
2Bar

Notes

Notion does not expose the width of tables or columns in their API. Tables are therefore only rendered with their default widths. You can change this with CSS, but you will either target all tables or no tables.

Styling

Tables follow semantic HTML5. You should target table, thead, tbody, tr, th and td as you normally would to style it.

Any table cell will additionally have the class cell.

Tables with row headers will have a thead section.

Tables with column headers will have th elements in the first column.