Docs
Tabs

Tabs

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

Loading...

Installation

	npx  shadcn-svelte@latest add tabs

Usage

	<script lang="ts">
  import * as Tabs from "$lib/components/ui/tabs";
</script>
 
<Tabs.Root value="account" class="w-[400px]">
  <Tabs.List>
    <Tabs.Trigger value="account">Account</Tabs.Trigger>
    <Tabs.Trigger value="password">Password</Tabs.Trigger>
  </Tabs.List>
  <Tabs.Content value="account">
    Make changes to your account here.
  </Tabs.Content>
  <Tabs.Content value="password">Change your password here.</Tabs.Content>
</Tabs.Root>