Tabs

A set of layered sections of content—known as tab panels—that are displayed one at a time.

Preview

Account

Make changes to your account here. Click save when you're done.

Installation

bash
npx sigma-ui add tabs

Examples

Basic

vue
<script setup lang="ts">
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
</script>

<template>
  <Tabs
    default-value="account"
  >
    <TabsList>
      <TabsTrigger value="account">
        Account
      </TabsTrigger>
      <TabsTrigger value="password">
        Password
      </TabsTrigger>
    </TabsList>
    <TabsContent value="account">
      Make changes to your account here.
    </TabsContent>
    <TabsContent value="password">
      Change your password here.
    </TabsContent>
  </Tabs>
</template>
Edit this page on GitHub