Sidebar presets
Page lists, workspace switching, search, and trash.
Installation
npm install pnpm add @notion-kit/uiComponents
Workspace switcher
Use the Workspace Switcher from @notion-kit/auth-ui to switch workspaces and sign out in an authenticated sidebar.
Page list
Use DocList to display pages in a named group.
Sidebar Page List
<DocList group="document" title="Document" pages={pages} />API reference
Prop
Type
Favorite list
FavoriteList shows favorite pages that are still active.
Sidebar Favorite List
<FavoriteList pages={pages} />API reference
Prop
Type
Search command
SearchCommand searches pages that are still active.
Sidebar Search Command
API reference
Prop
Type
Trash box
TrashBox opens a menu for searching, restoring, and deleting archived pages.
Sidebar Trash Box
<TrashBox pages={pages} />API reference
Prop
Type