Setting the file. One moment.
Subchapter 18.172
references/useOnline.mdMarkdown568 BView on GitHub
import { useOnline } from '@vueuse/core'
const online = useOnline()<template>
<UseOnline v-slot="{ isOnline }">
Is Online: {{ isOnline }}
</UseOnline>
</template>/**
* Reactive online state.
*
* @see https://vueuse.org/useOnline
* @param options
*
* @__NO_SIDE_EFFECTS__
*/
export declare function useOnline(
options?: ConfigurableWindow,
): Readonly<ShallowRef<boolean>>