@morpheme/tabs
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Morpheme Tabs

Vue Tabs Component.

Installation

npm

npm i @morpheme/tabs

yarn

yarn add @morpheme/tabs

pnpm

pnpm add @morpheme/tabs

Usage

<script setup lang="ts">
// import component
import Tabs from '@morpheme/tabs';
// import styles
import '@morpheme/tabs/dist/style.css';

const items = ref([
  {
    text: 'Tab 1'
  }
  {,
    text: 'Tab 2'
  },
  {
    text: 'Tab 3'
  }
])

const selectedTab = ref(0)
</script>

<template>
  <Tabs v-model="selectedTab" :items="items" />
</template>

Documentation

View full documentation here.

License

MIT

Package Sidebar

Install

npm i @morpheme/tabs

Weekly Downloads

54

Version

1.0.1

License

MIT

Unpacked Size

111 kB

Total Files

42

Last publish

Collaborators

  • gravitano