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