Skip to main content
The Sidebar Tabs API allows extensions to add custom tabs to the sidebar of the ComfyUI interface. This is useful for adding features that require persistent visibility and quick access.

Basic Usage

Tab Configuration

Each tab requires several properties:
The render function receives a DOM element where you should insert your tab’s content.

Icon Options

Sidebar tab icons can use various icon sets:
  • PrimeVue icons: pi pi-[icon-name] (e.g., pi pi-home)
  • Material Design icons: mdi mdi-[icon-name] (e.g., mdi mdi-robot)
  • Font Awesome icons: fa-[style] fa-[icon-name] (e.g., fa-solid fa-star)
Ensure the corresponding icon library is loaded before using these icons.

Stateful Tab Example

You can create tabs that maintain state:

Using React Components

You can mount React components in sidebar tabs:
For a real-world example of a React application integrated as a sidebar tab, check out the ComfyUI-Copilot project on GitHub.

Dynamic Content Updates

You can update sidebar content in response to graph changes: