Docs
Callout
Callout
Callout is a block that allows you to highlight text or add additional information to a block.
Installation
npm install @udecode/plate-callout
Usage
// ...
import { CalloutPlugin } from '@udecode/plate-callout/react';
const editor = usePlateEditor({
id: 'callout-demo',
override: {
components: {
...otherComponents,
[CalloutPlugin.key]: CalloutElement,
},
},
plugins: [
...otherPlugins,
CalloutPlugin,
],
value: calloutValue,
});
Transforms
editor.tf.insert.callout
Inserts a callout.
Parameters
Collapse all
Options for the insert nodes transform.