> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: close()

## Article: sidePanel.close()

## Article Link: https://dev.wix.com/docs/sdk/host-modules/dashboard/internal/side-panel/close.md

## Article Content:

# close()

Closes the currently open side panel. The call is global, so it closes whichever side panel is open, no matter which component opened it.

Call this method from the side panel's component code, such as from a close button or after the panel finishes its task.

> **Notes:**
> - This method works only in the code of a side panel's component, so it doesn't work when [developing sites](https://dev.wix.com/docs/develop-websites.md) or [building apps with Blocks](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/about-wix-blocks.md).
> - To open a side panel, use [`sidePanel.open()`](https://dev.wix.com/docs/sdk/host-modules/dashboard/internal/side-panel/open.md).

## Method declaration

```ts
() => void
```

## Parameters

This method takes no parameters.

## Returns

`void`

## Example

Close the side panel:

```ts
import { sidePanel } from '@wix/dashboard';

sidePanel.close();
```

> **Note:** To call this method in [self-managed apps](https://dev.wix.com/docs/sdk/articles/get-started/about-self-hosted-apps.md), you need to create a [client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). See the [setup](https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction.md) guide for more details.