Navbar Presets

A collection of preset components in Notion navbar.

Installation

npm install pnpm add @notion-kit/ui

Components


Title

API Reference

PropTypeDefaultDescription
page*Page-Current page data.
readOnlyboolean-Whether the title is editable.
onUpdate({ title?: string, icon?: IconData }) => void-Handler that is called when new title or icon is submitted.

Sharing

API Reference

PropTypeDefaultDescription
page*Page-Current page data.
onUpdate(id: string, isPublished: boolean) => void-Handler that is called when the public state of the page is changed.

API Reference

PropTypeDefaultDescription
page*Page-Current page data.
onUpdate(pageId: string, action: "archive" | "restore" | "delete") => void-Handler that is called when an action is triggered from a menuitem.

Participants

API Reference

PropTypeDefaultDescription
currentUserUser-Current user, i.e. yourself.
otherUsersUser[][]Other users on the page.