Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 389 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 389 Bytes

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>