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

***

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

# Variable: modelable

> `const` **modelable**: (`value`, `context`) => `void`

Defined in: [flow/src/decorators.ts:636](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/decorators.ts#L636)

Marks a child-component prop as two-way bound to the parent (parent↔child).

## Parameters

### value

`unknown`

### context

`ClassFieldDecoratorContext`

## Returns

`void`

## Remarks

A modelable prop is reactive (the parent pushes new values in on re-render) AND syncs back:
`value={this.x}` on a child component binds the parent's `x` to the child's modelable prop in
both directions. A modelable prop is implicitly reactive (it registers as both). Mirrors
Livewire's `#[Modelable]`. Applies to a field only.

## Example

```tsx
class TextField extends Component {
  // Parent binds with `value={this.query}`; edits here flow back to the parent.
  @modelable value = "";
}
```
