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

# getSidebarView()

> Returns the currently active sidebar tab in Daily Prebuilt.

`getSidebarView()`

✓ Prebuilt✗ Custom

Returns the currently selected sidebar tab in Daily Prebuilt.

## Return value

Returns a `Promise<SidebarView>`. Possible values:

* `null` — sidebar is closed
* `'people'` — participants list
* `'chat'` — chat panel
* `'network'` — network stats panel
* `'breakout'` — breakout rooms panel
* A custom `string` — a custom sidebar integration

## Example

```javascript theme={null}
const view = await call.getSidebarView();

if (view === 'chat') {
  console.log('Chat panel is open');
}
```

## See also

> [card] Methods
>
> * [setSidebarView()](https://docs.daily.co/reference/daily-js/instance-methods/set-sidebar-view.md)

> [card] Events
>
> * [sidebar-view-changed](https://docs.daily.co/reference/daily-js/events/iframe-ui-events.md#sidebar-view-changed)

> [card] Guides
>
> * [Customizing Daily Prebuilt](https://docs.daily.co/docs/prebuilt/customizing-daily-prebuilt.md)


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