mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 12:19:08 +01:00
22 lines
459 B
Vue
22 lines
459 B
Vue
<script lang="ts" setup>
|
|
import { FontSize } from 'composables/fontSize'
|
|
const sizes = ['xs', 'sm', 'md', 'lg', 'xl']
|
|
</script>
|
|
|
|
<template>
|
|
<CommonDropdown>
|
|
<slot />
|
|
|
|
<template #popper>
|
|
<CommonDropdownItem
|
|
v-for="size in sizes"
|
|
:key="size"
|
|
:checked="size === fontSize"
|
|
@click="setFontSize(size as FontSize)"
|
|
>
|
|
{{ size }}
|
|
</CommonDropdownItem>
|
|
</template>
|
|
</CommonDropdown>
|
|
</template>
|