# BlockPatch (@salmonui/rich-text)

> The BlockPatch interface of @salmonui/rich-text: A partial update for updateBlock: props merge, the rest replaces.

Canonical: https://salmonui.dev/docs/reference/rich-text/BlockPatch

```ts
import type { BlockPatch } from '@salmonui/rich-text';
```

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

## Reference

Kind: interface

```ts
interface BlockPatch {
    type?: BlockType;
    props?: Record<string, unknown>;
    content?: InlineContent[];
    children?: Block[];
}
```

A partial update for updateBlock: `props` merge, the rest replaces.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type?: BlockType;` | optional |  |
| `props` | `props?: Record<string, unknown>;` | optional |  |
| `content` | `content?: InlineContent[];` | optional |  |
| `children` | `children?: Block[];` | optional |  |
