> ## Documentation Index
> Fetch the complete documentation index at: https://onset.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

## Options

**page** `string` *required*

Onset page domain without `https://`

**debug** `boolean` (default: false)

Enable debug logs

**theme** `'light' | 'dark' | 'system'` (default: system)

Widget theme

**title** `string` (default: What's new)

Widget title

**showLatestPopup** `boolean` (default: true)

Show latest unseen release popup on load

**popupPosition** `'left' | 'right'` (default: right)

Placement of popup window

**widgetPosition** `'left' | 'right' | 'center'` (default: right)

Placement of widget window

## Callbacks

**onReady**

Called when the widget is ready

```typescript theme={null}
{
  //..options
  callbacks: {
    onReady() {
      
    }
  }
}
```

**onLoaded**

Called when the widget has loaded data

```typescript theme={null}
{
  //..options
  callbacks: {
    onLoaded(releases: Releases[]) {
      
    }
  }
}
```

**onWidgetOpen**

Called when the widget is opened

```typescript theme={null}
{
  //..options
  callbacks: {
    onWidgetOpen() {
      
    }
  }
}
```

**onWidgetClose**

Called when the widget is closed

```typescript theme={null}
{
  //..options
  callbacks: {
    onWidgetClose() {
      
    }
  }
}
```

**onPopupOpen**

Called when the widget popup is opened

```typescript theme={null}
{
  //..options
  callbacks: {
    onPopupOpen() {
      
    }
  }
}
```

**onPopupClose**

Called when the widget popup is closed

```typescript theme={null}
{
  //..options
  callbacks: {
    onPopupOpen() {
      
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.