Navbar Presets

A collection of preset components in Notion navbar.

Installation

pnpm add @notion-kit/navbar

Components


Title

<Title page={page} />

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

<TooltipProvider>
  <Publish page={page} />
</TooltipProvider>

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.
<TooltipProvider>
  <Menu page={page} />
</TooltipProvider>

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

SP
+1
<TooltipProvider>
  <Participants currentUser={currentUser} otherUsers={otherUsers} />
</TooltipProvider>

API Reference

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

On this page