> ## 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()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="red">{"✗"} Custom</Badge>

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

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [setSidebarView()](/reference/daily-js/instance-methods/set-sidebar-view)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [sidebar-view-changed](/reference/daily-js/events/iframe-ui-events#sidebar-view-changed)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Customizing Daily Prebuilt](/docs/prebuilt/customizing-daily-prebuilt)
  </Card>
</CardGroup>
