# findParentId (@salmonui/rich-text)

> The findParentId function of @salmonui/rich-text: Id of the block's parent (null at the top level, undefined when not found).

Canonical: https://salmonui.dev/docs/reference/rich-text/findParentId

```ts
import { findParentId } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: function

```ts
function findParentId(blocks: readonly Block[], id: string, parent?: string | null): string | null | undefined;
```

Id of the block's parent (`null` at the top level, `undefined` when not found).
