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.
{ id: string, // Unique identifier for the tab icon: string, // Icon class for the tab button title: string, // Title text for the tab tooltip?: string, // Tooltip text on hover (optional) type: string, // Tab type (usually "custom") render: (element) => void // Function that populates the tab content}
The render function receives a DOM element where you should insert your tab’s content.