Skip to content

createComponent()

function createComponent<T>(type, overrides?): ComponentOf<T>;

Creates a component of the given type with sensible defaults.

Type Parameter
T extends "text" | "image" | "line" | "rectangle"
Parameter Type
type T
overrides Partial<ComponentOf<T>>

ComponentOf<T>