> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# ContainerRenderProps

> **ContainerRenderProps** = `object`

Defined in: packages/editor/src/renderers/renderer.types.ts:34

A container's render function receives a node and renders an element
that wraps its editable children. The render is positional: it fires for
nodes of `type` whose parent permits this container at `arrayField`.

`node` is `PortableTextObject` because containers cannot register the
built-in `'span'` or `'block'` types (those are leaves and text blocks
respectively).

:::caution[Alpha]
This API should not be used in production and may be trimmed from a public release.
:::

## Properties

### attributes

> **attributes**: `Record`\<`string`, `unknown`\>

Defined in: packages/editor/src/renderers/renderer.types.ts:35

***

### children

> **children**: `ReactElement`

Defined in: packages/editor/src/renderers/renderer.types.ts:36

***

### focused

> **focused**: `boolean`

Defined in: packages/editor/src/renderers/renderer.types.ts:37

***

### node

> **node**: [`PortableTextObject`](/api/editor/interfaces/portabletextobject/)

Defined in: packages/editor/src/renderers/renderer.types.ts:38

***

### path

> **path**: [`Path`](/api/editor/type-aliases/path/)

Defined in: packages/editor/src/renderers/renderer.types.ts:39

***

### readOnly

> **readOnly**: `boolean`

Defined in: packages/editor/src/renderers/renderer.types.ts:40

***

### renderDefault()

> **renderDefault**: (`props`) => `ReactElement`

Defined in: packages/editor/src/renderers/renderer.types.ts:55

Render this position with the engine's default wrapper. Call from
inside a custom render to fall back to or wrap the default:

```ts
render: ({renderDefault, ...rest}) => renderDefault(rest)
```

The default is the engine's minimal wrapper. It does not chain
back to a globally-registered render: PTE has one user layer plus
positional overrides, and the engine default is the canonical
fallback at any position.

#### Parameters

##### props

`ContainerRenderProps`

#### Returns

`ReactElement`

***

### selected

> **selected**: `boolean`

Defined in: packages/editor/src/renderers/renderer.types.ts:41