element-plus/docs/.vitepress/vitepress/components/full-screen/vp-theme-toggler.vue
2022-02-21 21:36:34 +08:00

25 lines
567 B
Vue

<script setup lang="ts">
import CommonThemeToggler from '../common/vp-theme-toggler.vue'
import { toggleDark } from '../../composables/dark'
</script>
<template>
<div class="full-screen-theme-toggler">
<span> Theme </span>
<CommonThemeToggler @click="toggleDark()" />
</div>
</template>
<style lang="scss" scoped>
.full-screen-theme-toggler {
display: flex;
padding: 12px 14px;
align-items: center;
justify-content: space-between;
margin-top: 16px;
font-size: 13px;
background-color: var(--bg-color-soft);
border-radius: 8px;
}
</style>