# ModalDefinition

**Kind:** Interface

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

A modal/popup/dialog discovered in source code.
Compatible with ModalDefinition from interaction-map.types.ts.

## Properties

| Property | Type |
|---|---|
| `name` | `string` |
| `title` | `string` |
| `triggerType` | `ModalTriggerType` |
| `triggerSelector` | `string` |
| `triggerMethod` | `string` |
| `closeMethod` | `ModalCloseMethod` |
| `closeButtonTexts` | `string[]` |
| `conditionalOn` | `string` |
| `hostComponent` | `string` |
| `sourceFile` | `string` |
| `line` | `number` |
