> ## 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.

# setSidebarView()

> Opens the Daily Prebuilt sidebar to a specific panel, or closes it.

`setSidebarView(view)`

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

Fires a [`sidebar-view-changed`](/reference/daily-js/events/iframe-ui-events#sidebar-view-changed) event when the view changes.

## Parameters

<ParamField body="view" type="SidebarView" required>
  The panel to open, or `null` to close the sidebar. Built-in values:

  | Value        | Panel             |
  | ------------ | ----------------- |
  | `'people'`   | Participants list |
  | `'chat'`     | Chat              |
  | `'network'`  | Network stats     |
  | `'breakout'` | Breakout rooms    |
  | `null`       | Close the sidebar |

  Custom sidebar integration names (as defined in [`setCustomIntegrations()`](/reference/daily-js/instance-methods/set-custom-integrations)) are also accepted.
</ParamField>

## Return value

Returns `this` for chaining.

## Example

```javascript theme={null}
// Open to the chat panel
call.setSidebarView('chat');

// Close the sidebar
call.setSidebarView(null);
```

## See also

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

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