1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-18 00:28:01 +09:00
elk/components/settings/SettingsFontSize.vue

15 lines
357 B
Vue
Raw Normal View History

<script lang="ts" setup>
import type { FontSize } from '~/types'
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as FontSize[]
const fontSize = useFontSizeRef()
</script>
<template>
<select v-model="fontSize">
2022-12-28 12:50:29 +09:00
<option v-for="size in sizes" :key="size" :value="size" :selected="fontSize === size">
{{ size }}
</option>
</select>
</template>