# Tronic Extension UI Launcher

## Installation
```bash
npm i tronic-sdk @tronic-ext/ui-launcher
```
## Setup
Setup UILauncherExtension with tronic-sdk
```js

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()
    }
});

```

<!-- ## Tronic SDK -->
<!-- See the [developer documentation](https://tronic.app/docs) to learn how you can master the Tronic SDK in a matter of minutes. -->


## Usage

### Mount the UI Launcher component

```js
tronic.uiLauncher.mount()
```

### Controlling visibility

```js
tronic.uiLauncher.show()
tronic.uiLauncher.hide()
```
