> For the complete documentation index, see [llms.txt](https://apcom.gitbook.io/altrone-ui/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apcom.gitbook.io/altrone-ui/utils/hooks/usetoogledstate.md).

# useToogledState

This hooks is used for states which have only two possible states

{% hint style="info" %}
This hook only available in **Altrone 2.2** and newer
{% endhint %}

```typescript
import { useToogledState } from 'altrone-ui';

const {
    value, // can be true or false
    setValue, // (state: boolean) => void
    enable, // () => void
    disable, // () => void
    toggle // () => void
} = useToogledState(false) // false is default value
```
