# InlineEditRenderContext (@salmonui/editors/inline-edit)

> The InlineEditRenderContext interface of @salmonui/editors/inline-edit: Argument of the children render prop.

Canonical: https://salmonui.dev/docs/reference/editors/inline-edit/InlineEditRenderContext

```ts
import type { InlineEditRenderContext } from '@salmonui/editors/inline-edit';
```

Entry index: https://salmonui.dev/docs/reference/editors/inline-edit (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/inline-edit.md).

## Reference

Kind: interface

```ts
interface InlineEditRenderContext<T> {
    readonly value: T;
    readonly setValue: (value: T) => void;
    readonly inputProps: InlineEditInputProps;
    readonly save: () => void;
    readonly cancel: () => void;
    readonly pending: boolean;
    readonly errors: readonly string[];
}
```

Argument of the `children` render prop.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value: T;` |  | The draft value. |
| `setValue` | `readonly setValue: (value: T) => void;` |  | Replaces the draft. |
| `inputProps` | `readonly inputProps: InlineEditInputProps;` |  | Wiring for a text-like input (`value` is the draft as a string). |
| `save` | `readonly save: () => void;` |  |  |
| `cancel` | `readonly cancel: () => void;` |  |  |
| `pending` | `readonly pending: boolean;` |  | True while `save` (or async validation) is pending. |
| `errors` | `readonly errors: readonly string[];` |  | Validation messages of the draft (empty when valid). |
