Plugins allow you to extend Umbra with custom UI components or behavior.
host
umbra.destroy()
The host parameter is your Umbra instance. You can call:
class MyPlugin implements Plugin { public static readonly pluginId = 'u-<something>'; // Required private host: Host; constructor(host: Host) { this.host = host; // Access: host.theme, host.toggleTheme(), host.getCurrentTheme() } render(): void | HTMLElement { throw new Error("Method not implemented."); } onThemeChange(theme: string): void { console.log('Theme changed to:', theme); } }
There was an error while loading. Please reload this page.