# extractTabsFromTemplate

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/tab-extractor.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/tab-extractor.ts#L358)

Extract tab definitions from an HTML/template string.

Uses htmlparser2 to parse the template and walks the DOM tree looking for
known tab-group patterns across Angular, React, and Vue frameworks.

## Signature

```ts
function extractTabsFromTemplate(templateContent: string, filePath: string, componentName: string, framework: 'angular' | 'vue' | 'react'): TabDefinition[]
```

## Parameters

| Name | Type |
|---|---|
| `templateContent` | `string` |
| `filePath` | `string` |
| `componentName` | `string` |
| `framework` | `'angular' | 'vue' | 'react'` |

**Returns:** `TabDefinition[]`
