feat(ui): buttons can be raised (colors)

This commit is contained in:
upsiflu 2024-12-18 16:51:57 +01:00
parent 2602280080
commit 26a6b45542
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, computed, useSlots, onMounted } from 'vue'
import { type ColorProps, type VariantProps, type DefaultProps, propsToColor } from '~/composables/colors';
import { type ColorProps, type VariantProps, type DefaultProps, type RaisedProps, propsToColor } from '~/composables/colors';
import Loader from '~/components/ui/Loader.vue'
@ -21,7 +21,7 @@ const props = defineProps<{
autofocus? : boolean
ariaPressed? : true
} & (ColorProps | DefaultProps) & VariantProps>()
} & (ColorProps | DefaultProps) & VariantProps & RaisedProps>()
const slots = useSlots()
const isIconOnly = computed(() => !!props.icon && !slots.default)