Value: OFF
useToggle
A boolean switcher with utility functions.
Usage
import { useToggle } from '@vueuse/core'
const [value, toggle] = useToggle()
Type Declarations
/**
* A boolean ref with a toggler
*
* @see {@link /useToggle}
* @param [initialValue=false]
*/
export declare function useToggle(value: Ref<boolean>): Fn
export declare function useToggle(initialValue?: boolean): [Ref<boolean>, Fn]