<script setup>
/**
 * Base wrapper for PrimeVue ProgressSpinner.
 * Use in views instead of importing primevue/progressspinner directly.
 */
import ProgressSpinner from "primevue/progressspinner";

const props = defineProps({
  /** Size (both width and height), e.g. '1.5rem', '3rem'. */
  size: { type: String, default: "1.5rem" },
  /** Optional extra classes. */
  class: { type: [String, Object, Array], default: "" },
});
</script>

<template>
  <ProgressSpinner
    :style="{ width: props.size, height: props.size }"
    :class="props.class"
    v-bind="$attrs"
  />
</template>
