FMHYedit/.vitepress/theme/components/ToggleStarred.vue
taskylizard c97a0abf92
🎉 New website!
2023-11-12 22:12:57 +05:30

16 lines
290 B
Vue

<script setup lang="ts">
import Switch from "./Switch.vue";
const toggleStarred = () => document.documentElement.classList.toggle("starred-only");
</script>
<template>
<Switch @click="toggleStarred()" />
</template>
<style>
.starred-only li:not(.starred) {
display: none;
}
</style>