mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 23:50:08 +00:00
* Add support for custom iconify using tailwind plugin - Register svgs from custom icons folder - Update existing custom icons to remove padding - Swap component icons for classes in sidebar tabs - Update browse templates in menu to use custom icon * Add basic check for custom SVG icons * Remove unused iconify packages
17 lines
508 B
TypeScript
17 lines
508 B
TypeScript
import { markRaw } from 'vue'
|
|
|
|
import NodeLibrarySidebarTab from '@/components/sidebar/tabs/NodeLibrarySidebarTab.vue'
|
|
import type { SidebarTabExtension } from '@/types/extensionTypes'
|
|
|
|
export const useNodeLibrarySidebarTab = (): SidebarTabExtension => {
|
|
return {
|
|
id: 'node-library',
|
|
icon: 'icon-[comfy--node]',
|
|
title: 'sideToolbar.nodeLibrary',
|
|
tooltip: 'sideToolbar.nodeLibrary',
|
|
label: 'sideToolbar.labels.nodes',
|
|
component: markRaw(NodeLibrarySidebarTab),
|
|
type: 'vue'
|
|
}
|
|
}
|