20 lines
462 B
Vue
20 lines
462 B
Vue
<template>
|
|
<div
|
|
class="mb-2 flex items-center justify-between border-b-2 border-gray-100 pb-2"
|
|
>
|
|
<slot />
|
|
<DropdownButton title="Actions" :position="'right'" v-if="withActions">
|
|
<div class="flex flex-col">
|
|
<slot name="actions" />
|
|
</div>
|
|
</DropdownButton>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import DropdownButton from './DropdownButton.vue';
|
|
const props = defineProps<{
|
|
withActions?: boolean;
|
|
}>();
|
|
</script>
|