propapier/app/components/Pp/Form/ToggleButton.vue
webfussel 3fd26b4e66 add: (wip) new filtering layout
DropDown component, ToggleButton component,
2025-05-13 20:43:15 +02:00

21 lines
No EOL
351 B
Vue

<template>
<button class="ToggleButton" @click="click">
<Icon class="icon" :name="icons[current]!" mode="svg" />
</button>
</template>
<script setup lang="ts">
type Props = {
icons : string[]
current: number
}
defineProps<Props>()
const emit = defineEmits(['click'])
const click = () => emit('click')
</script>
<style scoped>
</style>