Files
KArtSell.Aegis/frontend/src/shared/ui/adapter/native/NativeButtonAdapter.vue
T
kjh2064 dcd1322d41
ci / backend (push) Failing after 12s
ci / frontend (push) Failing after 19s
ci / static (push) Failing after 45s
Initial commit: Add project files
2026-08-02 05:15:36 +09:00

7 lines
606 B
Vue

<script setup lang="ts">
import type { UiButtonType, UiSeverity } from '../contracts'
withDefaults(defineProps<{ label?: string; severity?: UiSeverity; type?: UiButtonType; disabled?: boolean; loading?: boolean }>(), { severity: 'primary', type: 'button', disabled: false, loading: false })
const emit = defineEmits<{ activate: [event: MouseEvent] }>()
</script>
<template><button class="ks-native-button" :class="`is-${severity}`" :type="type" :disabled="disabled || loading" @click="emit('activate', $event)"><span v-if="loading" aria-hidden="true"></span><slot>{{ label }}</slot></button></template>