Skip to content
This page is available as Markdown at /api/editor/interfaces/decorationrenderprops.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

DecorationRenderProps

Defined in: packages/editor/src/types/editor.ts:202

Props passed to a Decoration’s render.

children: ReactNode

Defined in: packages/editor/src/types/editor.ts:203


isFirst: boolean

Defined in: packages/editor/src/types/editor.ts:209

true for the fragment that contains the decoration’s start point. A collapsed decoration’s single fragment is both isFirst and isLast. Unique per decoration, so one-time chrome renders once.


isLast: boolean

Defined in: packages/editor/src/types/editor.ts:215

true for the fragment that contains the decoration’s end point. A collapsed decoration’s single fragment is both isFirst and isLast. Unique per decoration, so one-time chrome renders once.