@theme-toggles/vue
Animated theme toggles for Vue.
700
826
| Install | |
|---|---|
npm install @theme-toggles/vue |
|
| Latest Version: | 1.0.3 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Sep 23, 2026 |
| Links: | GitHub · npm |
Maintainer: alfiejones
@theme-toggles/vue
Animated theme toggles for Vue.
Install
npm install @theme-toggles/vue
Use
<script setup lang="ts">
import { ref } from "vue";
import { Classic } from "@theme-toggles/vue";
import "@theme-toggles/vue/styles/classic.css";
const toggled = ref(false);
</script>
<template>
<!-- Optionally omit `toggled` if your app uses `.dark` on its root to switch themes. -->
<Classic :toggled="toggled" @click="toggled = !toggled" />
</template>
Browse the full collection of toggles.
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.3 | ^3.4.0 | MIT | |
| 1.0.2 | ^3.4.0 | MIT | |
| 1.0.1 | ^3.4.0 | MIT | |
| 1.0.0 | ^3.4.0 | MIT |