<template>
  <q-tabs
    v-model="tab"
    class="button bg-background-2 text-font"
    indicator-color="transparent"
    active-color="primary"
    v-bind="$attrs"
    align="justify"
    active-bg-color="white"
  >
    <q-tab
      v-for="(q_tab, i) in tabsItems"
      :key="i"
      :name="q_tab.name"
      :label="q_tab.label"
      :disable="q_tab.disable"
      :class="{ hidden: q_tab.hide }"
    />
  </q-tabs>
</template>

<script setup>
const { tabsItems } = defineProps({
  tabsItems: {
    type: Array,
    required: false,
    default: () => [],
  },
});

const tab = defineModel({ type: String });
</script>
