<script setup>
/**
 * Primary action button (submit, save, yes). Fixed: variant primary, icon left, default size.
 * In views set: label, icon (name e.g. "check"), loading, disabled, type.
 */
import BaseButton from "./BaseButton.vue";

const props = defineProps({
  label: { type: String, default: "" },
  icon: { type: String, default: "" },
  loading: { type: Boolean, default: false },
  disabled: { type: Boolean, default: false },
  type: { type: String, default: "button" },
  class: { type: [String, Object, Array], default: "" },
});
</script>

<template>
  <BaseButton
    variant="primary"
    icon-position="left"
    :label="props.label"
    :icon="props.icon"
    :loading="props.loading"
    :disabled="props.disabled"
    :type="props.type"
    :class="props.class"
    v-bind="$attrs"
  />
</template>
