more ui components

This commit is contained in:
Marco Crapts
2023-05-26 17:32:43 +02:00
parent 3e6b9414f4
commit 7c1e74ff39
9 changed files with 41 additions and 46 deletions

View File

@@ -19,5 +19,5 @@ const styleClass = computed(() => {
})
</script>
<template>
<button class="btn" :class="styleClass"><slot></slot></button>
<button class="btn duration-0" :class="styleClass"><slot></slot></button>
</template>

View File

@@ -0,0 +1,11 @@
<template>
<div class="dropdown-end dropdown">
<slot name="activator" tabindex="0"></slot>
<ul
tabindex="0"
class="dropdown-content menu rounded-box menu-compact mt-1 w-52 bg-base-100 p-2 text-base-content shadow"
>
<slot name="items"></slot>
</ul>
</div>
</template>

View File

@@ -0,0 +1,5 @@
<template>
<li class="text-base">
<a><slot></slot></a>
</li>
</template>

View File

@@ -60,7 +60,7 @@ defineExpose({ open, close })
</p>
<div class="modal-action">
<slot name="actions" v-bind="slotProps">
<button class="btn-sm btn" @click="close">Close</button>
<UIButton size="sm" @click="close">Close</UIButton>
</slot>
</div>
</div>