feat(ui): buttons can be raised (colors)
This commit is contained in:
parent
2602280080
commit
26a6b45542
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, useSlots, onMounted } from 'vue'
|
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'
|
import Loader from '~/components/ui/Loader.vue'
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ const props = defineProps<{
|
||||||
|
|
||||||
autofocus? : boolean
|
autofocus? : boolean
|
||||||
ariaPressed? : true
|
ariaPressed? : true
|
||||||
} & (ColorProps | DefaultProps) & VariantProps>()
|
} & (ColorProps | DefaultProps) & VariantProps & RaisedProps>()
|
||||||
|
|
||||||
const slots = useSlots()
|
const slots = useSlots()
|
||||||
const isIconOnly = computed(() => !!props.icon && !slots.default)
|
const isIconOnly = computed(() => !!props.icon && !slots.default)
|
||||||
|
|
Loading…
Reference in New Issue