<script setup>
/**
 * Text-style button (no background). For cancel/no in dialogs. Fixed: variant secondary, text, icon left.
 * In views set: label, icon (name e.g. "times").
 */
import BaseButton from "./BaseButton.vue";

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

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