---
title: useMenuIsOpen
status: published
category: ui
group: Function
author: api
date: 06/23/2023
order: 72
---<Small>Public Function</Small>




##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`id`

</ParametersTableName>
<ParametersTableDescription>

```ts
string
```



</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`cb`

 <Small>(optional)</Small>

</ParametersTableName>
<ParametersTableDescription>

```ts
(isOpen: boolean) => void
```



</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
readonly [boolean, (isOpen: boolean) => void]
```

