[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Modal

# Function: Modal()

> **Modal**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:160](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L160)

A centered, backdrop-dimmed dialog whose visibility is driven by a bound `@expose`
boolean; backdrop click and the × button close it locally (no server round-trip)
and focus is trapped while open.

## Parameters

### props

[`ModalProps`](../interfaces/ModalProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

Bind `show` to a reactive boolean — its name is auto-resolved (override with `name`).
`closable` (default `true`) renders the × button, `title` fills the header and wires
`aria-labelledby`, and `onClose` replaces the default `$flow.<name> = false` close action.

## Example

```tsx
<Modal show={this.confirming} title="Delete post?">
  <p>This can't be undone.</p>
</Modal>
```
