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

getNextBlock

const getNextBlock: EditorSelector<{ node: PortableTextBlock; path: BlockPath; } | undefined>

Defined in: selector.get-next-block.ts:17

Returns the block after the selection’s end block within the same container scope, if any.

Siblings are resolved within the enclosing container (or the document root if the selection is at root level). Never crosses container boundaries.