lowercase buttons by default

This commit is contained in:
Hayden 2022-10-01 12:57:51 -08:00
parent 72324b8439
commit d6c1b789cf

View file

@ -26,6 +26,7 @@
'btn-sm': size === 'sm', 'btn-sm': size === 'sm',
'btn-lg': size === 'lg', 'btn-lg': size === 'lg',
}" }"
:style="upper ? '' : 'text-transform: none'"
> >
<label v-if="$slots.icon" class="swap swap-rotate mr-2" :class="{ 'swap-active': isHover }"> <label v-if="$slots.icon" class="swap swap-rotate mr-2" :class="{ 'swap-active': isHover }">
<slot name="icon" /> <slot name="icon" />
@ -38,6 +39,10 @@
type Sizes = "sm" | "md" | "lg"; type Sizes = "sm" | "md" | "lg";
const props = defineProps({ const props = defineProps({
upper: {
type: Boolean,
default: false,
},
loading: { loading: {
type: Boolean, type: Boolean,
default: false, default: false,