vueadvancedmit
Vue Tabs
Accessible tab navigation.
4.7k3.7k587247
About this module
A Vue tabs component with keyboard navigation (arrow keys), ARIA tablist/tab/tabpanel roles and animated indicator.
#vue#tabs#navigation#aria
Source code
Installation
- 1
Install Vue
Create a Vue 3 project or add the component to an existing one.
npm create vue@latest - 2
Create the component
Create VueTabs.vue and paste the source below.
- 3
Import and use
Import the component in your page or parent component and render it.
Usage
- 1
Import the component
Import VueTabs in a parent component.
import VueTabs from "./components/VueTabs.vue"; - 2
Register and render
Register it in your setup and render it in the template.
<script setup> import VueTabs from "./components/VueTabs.vue"; </script> <template> <vue-tabs /> </template>