# useSidebarState

This composable is created for persisting and manipulating with the global state of the sidebar (collapsed, expanded)

It takes an object as a parameter which sets the delay on entering to open and exiting to close the sidebar. By default its delay to open is 350ms and to close is 100ms.

# Example usage

<script>
import { useSidebarState } from '@jdi/vue-backoffice-library'

export default {
  setup() {
    const { handleMouseenter, handleMouseleave } = useSidebarState({ enterDelay: 500, exitDelay: 200 })

    // ...
  }
}
</script>