Skip to content

useTypedAttributeUpdater

useTypedAttributeUpdater<T>(attributes, setAttributes, validate?): TypedAttributeUpdater<T>

Defined in: inspector-runtime-model.tsx:268

Create typed attribute update callbacks for manifest-driven editor UIs.

T extends object

T

Current block attribute object.

(attrs) => void

Callback that applies partial attribute updates.

(value) => ValidationResult<T>

Optional validator used before committing updates.

TypedAttributeUpdater<T>

Typed helpers for key-based and path-based attribute updates.