# Tabs

Use tabs to switch between related panels. Bind `value` on the root; match each trigger and content by `value`.
`Tabs.List` supports `variant="default" | "line"`; the root supports horizontal/vertical orientation.

```svelte
<script lang="ts">
	import * as Tabs from '~/components/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>
```