vue-darkmode-toggle
v1.0.0
Published
A simple dark mode toggle for Vue 3 which automatically adds the dark class to the html tag
Downloads
10
Readme
vue-darkmode-toggle
- a simple toggle button which uses tailwind library by default
- just simply write your css in tailwind with :dark classes
- when toggled it will automatically switches the modes
Installation
npm i vue-darkmode-toggle
Usage
import { DarkModeToggle } from 'vue-darkMode-toggle'
<template>
<DarkModeToggle class='h-4 w-4' />
</template>