[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Tabs

# Function: Tabs()

> **Tabs**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:660](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L660)

A tabbed panel set built from an `items` array, with a `role="tablist"`, roving
arrow-key navigation and correct tab/tabpanel ARIA wiring. Selection is client-only
(Alpine); the first item is active initially.

## Parameters

### props

[`TabsProps`](../interfaces/TabsProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

Each item supplies a `label`, its panel `content`, and an optional `name` used as the
stable id (defaults to the index).

## Example

```tsx
<Tabs items={[
  { label: "Profile", content: <ProfileForm /> },
  { label: "Billing", content: <BillingForm /> },
]} />
```
