UNPKG

vue-icon-gallery

Version:

Vite plugin for Vue 3 that opens a local gallery to preview your SVG icons before using them in templates. Instantly browse, search, and view your icons directly from your dev server — no more guessing by file name.

26 lines (25 loc) 791 B
import type { Plugin } from 'vite'; export interface VueIconGalleryOptions { /** * Path(s) to folders containing icon Vue components */ iconsPath: string | string[]; /** * Port for the gallery server * @default 3002 */ port?: number; /** * Automatically open the gallery in browser * @default true */ open?: boolean; } /** * Vite plugin that creates a local gallery server to preview SVG icons */ export declare function vueIconGallery(options: VueIconGalleryOptions): Plugin; export { scanIcons } from './iconScanner.js'; export { startGalleryServer, stopGalleryServer } from './simpleGalleryServer.js'; export type { IconInfo } from './iconScanner.js'; export type { GalleryServerOptions } from './simpleGalleryServer.js';