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

# isResourceCenterOpen()

> Check whether the resource center panel is currently expanded

<Note>
  Requires `usertour.js` 0.0.20 or later.
</Note>

The `isResourceCenterOpen()` method returns whether the resource center panel is currently expanded. Use this to read the panel's state from your own UI — for example, to keep a help button's "active" indicator in sync with the panel.

## Parameters

None.

## Returns

`boolean` — Returns `true` if the resource center is expanded, `false` if it is collapsed or if no resource center is currently active.

## Example

```javascript theme={null}
// Reflect the resource center state in a custom help button
function refreshHelpButton() {
  const isOpen = usertour.isResourceCenterOpen();
  helpButton.classList.toggle('is-active', isOpen);
}
```

<Note>
  Make sure to call `init()` before using any other Usertour.js methods.
</Note>
