overrideViews
Replaces views in a registry. Keys in overrides win over base.
Use this to swap an existing renderer; use withViews to add NEW
node types without touching existing entries.
import { overrideViews } from '@threadplane/render';Declaration · overload 1
export declare function overrideViews(base: ViewRegistry, overrides: Record<string, Type<unknown> | RenderViewEntry>): ViewRegistry;Parameters
base· requiredViewRegistryoverrides· requiredRecord<string, Type<unknown> | RenderViewEntry>
Returns
ViewRegistryExamples
const themed = overrideViews(a2uiBasicCatalog(), { Card: MyCardComponent });