pupbrained-xyz-nuxt/components/NavBar.vue

29 lines
587 B
Vue
Raw Normal View History

2024-08-27 00:03:24 -04:00
<template>
2024-08-27 22:58:38 -04:00
<div
flex
gap-2
pb-2
>
<DropDown
v-model='fontCookie'
:options='fonts'
default-option='JetBrains Mono'
cookie-name='font'
/>
<DropDown
v-model='themeCookie'
:options='themes'
default-option='Catppuccin Mocha'
cookie-name='theme'
/>
</div>
2024-08-27 00:03:24 -04:00
</template>
2024-08-27 22:58:38 -04:00
<script setup lang="ts">
import { fonts, themes } from '#imports'
2024-08-27 23:00:45 -04:00
// These should never be null so it's fine to use `as Ref`
2024-08-27 22:58:38 -04:00
const fontCookie = useCookie('font') as Ref<string>
const themeCookie = useCookie('theme') as Ref<string>
</script>