Layouts
Configure how Table View displays the same rows.
Usage
Set layout in defaultView or view. Users can also switch layouts in
View Settings.
| Layout | Value | Displays |
|---|---|---|
| Table | "table" | Rows and properties in a grid. |
| List | "list" | A list of rows with selected properties. |
| Board | "board" | Cards in columns grouped by a property. |
| Timeline | "timeline" | Rows on a horizontal date scale. |
| Calendar | "calendar" | Dated rows in Month, Week, or Day. |
| Map | "map" | Rows with coordinates as pins. |
Calendar
Table View Calendar
<TableView
defaultData={data}
defaultProperties={properties}
defaultView={{
layout: "calendar",
dateView: { range: "monthly", datePropertyId: "schedule" },
}}
/>Set datePropertyId to a property of type "date". Rows with a valid start
date appear as events. Click an event to open its row, or click an empty date
or time to create one. Drag or resize an event to update its dates.
A Date cell stores DateData from @notion-kit/table-hook/plugins. Timestamps
use Unix milliseconds. For all-day events, the stored end date is inclusive.
Set endDate: false for a single date. Calendar then displays one day for an
all-day event or one hour for a timed event. The Date property's config.tz
sets the display timezone.
For events independent of table rows, use the Calendar block.
Timeline
Use layout: "timeline" with the same dateView settings. Timeline supports
daily, monthly, and quarterly ranges. Calendar supports daily, weekly, and
monthly. Switching layouts resets an unsupported range to monthly.
When the selected Date property is missing, the view uses an existing Date property or creates one if editing is enabled. Timeline seeds a new Date property from row creation and last-edited timestamps. Calendar leaves it empty. With controlled resources, apply the corresponding callbacks to keep these changes.
The visible date stays local to the mounted table. Set view.locked to
prevent date edits and range changes while keeping navigation available.
Map
<TableView
defaultData={data}
defaultProperties={properties}
defaultView={{
layout: "map",
mapView: { locationPropertyId: "place" },
}}
/>Set locationPropertyId to a property of type "location". Rows with
coordinates appear as pins. Pass propertySources to supply place search
and reverse geocoding.
Migrate Timeline settings
| Previous API | Current API |
|---|---|
view.timeline | view.dateView |
TimelineViewState | DateViewState |
setTimelineRange | setDateViewRange |
setTimelineDateProperty | setDateViewDateProperty |
view.timeline_range.change | view.date_view_range.change |
view.timeline_property.change | view.date_view_property.change |
Update persisted settings and controlled view resources to use the current names.