Skip to main content

View as Markdown · AI documentation index

Type Alias: Component

Component = TextComponent | HeaderComponent | ImageComponent | VideoComponent | ActionsComponent | ConversationComponent | AnotherStoryComponent

Defined in: packages/core/src/passages/story/types.ts:913

Union type of all available story component types. Used for type-safe story content arrays.

Remarks​

This discriminated union allows TypeScript to narrow component types based on the type property when rendering or processing components.