# Tabs (@limerdev/zest) Panels shown one at a time, chosen with tabs: `` (`bind:value`, `orientation`) holds a `Tabs.List` of `Tabs.Trigger`s and a `Tabs.Content` per tab, matched by `value`. Arrow keys move between tabs and show their panel; Tab moves into the panel. - Category: Navigation - Import: `import { Tabs } from '@limerdev/zest'` - Bits UI: `Tabs`, https://bits-ui.com/docs/components/tabs - Exports: `Tabs.Root`, `Tabs.List`, `Tabs.Trigger`, `Tabs.Content` - Use for: Views of the same thing side by side on one page: a project's overview, hours and settings; a form split into a few sections. - Don't: Moving between pages: use links (a `NavigationMenu` or a sidebar). Steps the user must go through in order. Many tabs that don't fit: use a `Select` or a sidebar. ```svelte Overview Hours … … ``` Props of `Tabs.Root`: - `activationMode` (`"manual" | "automatic"`, default `"automatic"`): How the tabs should be activated. If set to `'automatic'`, the tabs will be activated when the trigger is focused. If set to `'manual'`, the tabs will be activated when the trigger is pressed. - `disabled` (`boolean`, default `false`): Whether the tabs are disabled or not. - `loop` (`boolean`, default `false`): Whether to loop through the tabs when reaching the end when using the keyboard. - `onValueChange` (`OnChangeFn`): A callback function called when the selected tab changes. - `orientation` (`"horizontal" | "vertical"`, default `"horizontal"`): The orientation of the tabs. - `value` (`string`, default `''`, bindable): The value of the selected tab. Props of `Tabs.Trigger`: - `disabled` (`null | false | true`, default `false`): Whether the trigger is disabled or not. - `value` (`string`, required): The value of the tab associated with this trigger. Props of `Tabs.Content`: - `value` (`string`, required): The value of the tab associated with this content. Example: Basic Views of one project. Arrow keys move between tabs. ```svelte Overview Hours Settings Twelve people on three projects. Next invoice on 15 December. 412 hours logged this month, 380 billable. Billing contact, rates and reminders. ``` Example: Vertical orientation="vertical" stacks the tabs beside the panels; Up and Down move. ```svelte General Billing Members

Name, timezone and language.

The tabs keep their own height, however tall the panel beside them grows.

Each setting is saved as soon as it changes.

Invoice address and payment terms. Who can log and approve hours.
```