assembly/components/common/menu/MenuButton.vue

23 lines
621 B
Vue
Raw Normal View History

2021-08-01 18:29:41 +00:00
<template>
<Button
color="white"
2021-08-04 19:17:26 +00:00
class="border rounded-[6px] p-1.5 border-grey-light dark:border-opacity-25 dark:bg-opacity-100 dark:bg-dark-400"
2021-08-01 18:29:41 +00:00
:style="`width: ${size}px; height: ${size}px`"
v-on="$listeners"
>
2021-08-04 19:17:26 +00:00
<DotsHorizontal :style="`height: ${+size / 2}`" />
2021-08-01 18:29:41 +00:00
</Button>
</template>
<script>
import { defineComponent } from '@nuxtjs/composition-api'
2021-08-04 19:17:26 +00:00
import DotsHorizontal from '@/assets/img/icons/heroicons/solid/dots-horizontal.svg?inline'
2021-08-01 18:29:41 +00:00
export default defineComponent({
2021-08-04 19:17:26 +00:00
components: { DotsHorizontal },
2021-08-01 18:29:41 +00:00
props: { size: { type: String, default: '30' } },
})
</script>
<style></style>