Skip to content

Instantly share code, notes, and snippets.

@inyee786
Created January 18, 2026 08:16
Show Gist options
  • Select an option

  • Save inyee786/2e60cbc9d17d3e33bbad9ca9c3cd6444 to your computer and use it in GitHub Desktop.

Select an option

Save inyee786/2e60cbc9d17d3e33bbad9ca9c3cd6444 to your computer and use it in GitHub Desktop.
export interface UILibrary {
name: string;
packageName: string | string[];
displayName: string;
framework: 'react' | 'vue' | 'svelte' | 'angular';
}
export interface ComponentSnippet {
name: string; // e.g. "mui-button"
displayName: string; // e.g. "Button"
description: string;
category: string;
fullCode: string; // includes imports + wrapper
usage: string; // JSX-only usage (optional but handy)
}
export interface LibraryComponents {
library: UILibrary;
components: ComponentSnippet[];
}
export interface DetectedLibrary {
library: UILibrary;
version: string;
components: ComponentSnippet[];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment