Components

VxdaTabs

  <script setup lang="ts">
    
    import { VxdaTabs, VxdaTabsItem } from 'vxda-tabs';
  
    const activeTab = ref('myId');
    const breakpoints = {
      0: 'accordion',
      600: 'vertical',
      1200: 'horizontal'
    }
  </script>
  
  <template>
      <VxdaTabs
        v-model:active-tab-id="activeTab"
        animation="fade" 
        :breakpoints="breakpoints"
        tabs-alignemnt="center">
        
          <VxdaTabsItem id="myId" title="my button text">
            <div>lorem ipsum</div> 
          </VxdaTabsItem>
          
      </VxdaTabs>
  </template>

VxdaTabs Props

nametypedefaultnotes
tabs-alignmentcenter, start, endcenter
v-model:active-tab-idstringnullyou can provide "id" prop for "VxdaTabsItem" components. By default first item is active. There is also option to choose open tab with # in url
animationfade, fadeLeft, fadeRight, fadeDown,FadeUp, nonefade
orientationvertical, horizontal, accordionhorizontalyou can change the way buttons are positioned - top / left / like accordion
breakpointsobjectnullyou can change orientation base on screen width. key = min-width, value = orientation

VxdaTabsItem

  <script setup lang="ts">
    import { VxdaTabs, VxdaTabsItem } from 'vxda-tabs';
  </script>  
  
  <template>
      <VxdaTabs>
        
          <VxdaTabsItem id="myId" title='my button text'>
            lorem ipsum
          </VxdaTabsItem>
          
      </VxdaTabs>
  </template>

VxdaTabsItem Props

nametypedefaultnotes
idstringautomaticworks with v-model that is set on VxdaTabs component
titlestringthis is required and is used to set text in tab buttons
disabledboolean
Last Updated:
Contributors: pawelkazubski