<!-- AUTO-GENERATED from the @riverty/web-components custom elements manifest. Do not edit by hand. -->

# r-tab

A single tab control within `r-tabs-list`, linking to a corresponding `r-tab-panel` via `panelId`.

Example
```
<r-tabs>
  <r-tabs-list>
    <r-tab panel-id="panel-1" active>Overview</r-tab>
    <r-tab panel-id="panel-2">Details</r-tab>
    <r-tab panel-id="panel-3" disabled>Archived</r-tab>
  </r-tabs-list>
  <r-tab-panel tab-id="panel-1" active>Overview content</r-tab-panel>
  <r-tab-panel tab-id="panel-2">Details content</r-tab-panel>
  <r-tab-panel tab-id="panel-3">Archived content</r-tab-panel>
</r-tabs>
```

## class: `RTab`, `r-tab`

### Fields

| Name       | Privacy | Type      | Default | Description                             | Inherited From |
| ---------- | ------- | --------- | ------- | --------------------------------------- | -------------- |
| `active`   |         | `boolean` | `false` | Indicates if `<r-tab>` is active        |                |
| `disabled` |         | `boolean` | `false` | Indicates if `<r-tab>` is disabled      |                |
| `panelId`  |         | `string`  |         | Id of the panel that `<r-tab>` controls |                |

### Events

| Name           | Type                                                          | Description                                                                   | Inherited From |
| -------------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------- | -------------- |
| `moveTabFocus` | `CustomEvent<{ element: HTMLRTabElement; keycode: string; }>` | Emits `keydown` event on the `<r-tab>` to notify tabs component to move focus |                |
| `tabChange`    | `CustomEvent<{ element: HTMLRTabElement; }>`                  | Emits `click` event on the `<r-tab>`                                          |                |

### Attributes

| Name       | Field    | Inherited From |
| ---------- | -------- | -------------- |
| `active`   | active   |                |
| `disabled` | disabled |                |
| `panel-id` | panelId  |                |

### Slots

| Name   | Description                      |
| ------ | -------------------------------- |
|        | Tab label text                   |
| `icon` | Icon placed before the tab label |

<hr/>

## Exports

| Kind                        | Name    | Declaration | Module | Package |
| --------------------------- | ------- | ----------- | ------ | ------- |
| `js`                        | `RTab`  | RTab        |        |         |
| `custom-element-definition` | `r-tab` | RTab        |        |         |
