# detectUIInteractions

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/ui-interaction-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/ui-interaction-detector.ts#L81)

Extract UI interactions from component template code

Analyzes HTML/JSX templates to find interactive elements (buttons, links)
and maps them to state machine transitions.

## Signature

```ts
function detectUIInteractions(templateCode: string, stateMachines: StateMachine[], componentName: string): UIInteraction[]
```

## Parameters

| Name | Type |
|---|---|
| `templateCode` | `string` |
| `stateMachines` | `StateMachine[]` |
| `componentName` | `string` |

**Returns:** `UIInteraction[]`
