---
title: Tab
framework: docc
role: symbol
role_heading: Directive
path: docc/tab
---

# Tab

A container directive that holds general markup content describing an individual tab within a tab-based layout.

## Declaration

```swift
@Tab(_ title: String) {
    ...
}
```

## Parameters

- `title`: The title that should identify the content in this tab when rendered. (required)

## Overview

Overview To add a new tab to a TabNavigator, add a @Tab directive within the content of the @TabNavigator directive.
