Setting the file. One moment.
Subchapter 18.184
references/usePreferredDark.mdMarkdown610 BView on GitHub
import { usePreferredDark } from '@vueuse/core'
const isDark = usePreferredDark()<template>
<UsePreferredDark v-slot="{ prefersDark }">
Prefers Dark: {{ prefersDark }}
</UsePreferredDark>
</template>/**
* Reactive dark theme preference.
*
* @see https://vueuse.org/usePreferredDark
* @param [options]
*
* @__NO_SIDE_EFFECTS__
*/
export declare function usePreferredDark(
options?: ConfigurableWindow,
): ComputedRef<boolean>