@tronic-ext/ui-launcher
v1.0.0
Published
tronic ui launcher extension
Downloads
11
Readme
Tronic Extension UI Launcher
Installation
npm i tronic-sdk @tronic-ext/ui-launcher
Setup
Setup UILauncherExtension with tronic-sdk
import { Tronic } from 'tronic-sdk';
import { UILauncherExtension } from '@tronic-ext/ui-launcher';
const tronic = new Tronic('YOUR_API_KEY', {
endpoint: 'https://your-endpoint.tronic.app',
extensions: [
new UILauncherExtension()
]
});
// or
const tronic = new Tronic('YOUR_API_KEY', {
endpoint: 'https://your-endpoint.tronic.app',
extensions: {
uiLauncher: new UILauncherExtension()
}
});
Usage
Mount the UI Launcher component
tronic.uiLauncher.mount()
Controlling visibility
tronic.uiLauncher.show()
tronic.uiLauncher.hide()