Navbar Presets
A collection of preset components in Notion navbar.
Installation
Components
Title
API Reference
Prop | Type | Default | Description |
---|---|---|---|
page * | Page | - | Current page data. |
readOnly | boolean | - | 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
Prop | Type | Default | Description |
---|---|---|---|
page * | Page | - | Current page data. |
onUpdate | (id: string, isPublished: boolean) => void | - | Handler that is called when the public state of the page is changed. |
Menu
API Reference
Prop | Type | Default | Description |
---|---|---|---|
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
API Reference
Prop | Type | Default | Description |
---|---|---|---|
currentUser | User | - | Current user, i.e. yourself. |
otherUsers | User[] | [] | Other users on the page. |