Skip to Content
Database viewsGallery view

Gallery view

The sample database, drawn by <Gallery>. The code below is what this page runs.

const db = await FetchDatabase({ database_id: process.env.NOTION_TESTDB_ID, filter: { property: 'Published', checkbox: { equals: true } }, sorts: [{ property: 'Date', direction: 'descending' }], }) <Gallery db={db} keys={["Name", "Date", "Tags"]} options={{ image: { preview: "cover", size: "large" } }} />
Rendered from Notion by Rotion

This is a page for validating a gallery view, which is an object that makes up a page on notion.

Last updated on