koel/resources/assets/js/components/ui/SidebarMenuToggleButton.vue
2022-12-02 17:17:37 +01:00

12 lines
301 B
Vue

<template>
<button @click.prevent.stop="toggleSidebar">
<icon :icon="faBars" />
</button>
</template>
<script lang="ts" setup>
import { faBars } from '@fortawesome/free-solid-svg-icons'
import { eventBus } from '@/utils'
const toggleSidebar = () => eventBus.emit('TOGGLE_SIDEBAR')
</script>