API reference: @salmonui/rich-text
BlockPatchinterface
import type { BlockPatch } from '@salmonui/rich-text';interface BlockPatch {
type?: BlockType;
props?: Record<string, unknown>;
content?: InlineContent[];
children?: Block[];
}
A partial update for updateBlock: props merge, the rest replaces.
| Name | Signature | Description |
|---|---|---|
typeoptional | type?: BlockType; | |
propsoptional | props?: Record<string, unknown>; | |
contentoptional | content?: InlineContent[]; | |
childrenoptional | children?: Block[]; |