Skip to content

DocumentEditSlotOutlet

DocumentEditSlotOutlet<TProps>(props): ReactNode

Defined in: packages/react/src/documents/DocumentEditSlotOutlet.tsx:78

Renders one resolved edit.* slot (S11/S12): root then resource-level contributions, ordered, with builtins merged in before resolution (same two-array split as SlotOutlet, for the same reason — documentEditBuiltinContributions closes over nothing per-render, but keeping the split matches every other slot renderer and lets a project’s before/after target a built-in id). Contributions whose id has a header.overrides entry are additionally composed through that override chain (S3), each layer in its own ComponentErrorBoundary keyed by the override’s own id (decision 17) — a throwing wrapper falls back to the stage beneath it (ultimately the built-in or project contribution itself) plus an inline error naming the wrapper, rather than losing the whole action.

TProps extends EditSlotProps = EditSlotProps

ComponentContributionInput<ReactHKT, EditSlotProps>[]

This slot’s built-in contributions (edit.header.actions only; [] elsewhere).

TProps

EditSlotProps passed to every contribution.

EditSlotConfigInput<ReactHKT> | undefined

The collection/global-level config for this slot.

EditSlotConfigInput<ReactHKT> | undefined

The root-level admin.components.edit config for this slot.

SlotId

One of SLOT_IDS.edit.*.

ReactNode

The resolved, override-composed contribution list, each wrapped in a ComponentErrorBoundary.