FMHYedit/.vitepress/theme/components/ToggleStarred.vue
2024-01-25 16:32:45 +00:00

17 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>