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

# Span

> **Span** = `object`

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

A span registration. The span `_type` is `'span'` at the top level.
Positional overrides nested in a container's `of` array can register
a different `_type` for a span-like inline at that lexical scope
(e.g. a `code-span` inside a `code-block`).

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

## Properties

### kind

> **kind**: `"span"`

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

***

### render?

> `optional` **render**: [`SpanRender`](/api/editor/type-aliases/spanrender/)

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

Outer render. Two modes:
- omitted: fall through to global registered render (or engine default)
- function: use this render. The function receives a `renderDefault`
  prop that returns the engine default when called.

***

### type

> **type**: `string`

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