Skip to content

@maxhealth.tech/prefab / renderer / PrefabWireData

Interface: PrefabWireData

Defined in: renderer/index.ts:74

Properties

$prefab

ts
$prefab: object;

Defined in: renderer/index.ts:75

version

ts
version: string;

view

ts
view: ComponentNode;

Defined in: renderer/index.ts:76


state?

ts
optional state?: Record<string, unknown>;

Defined in: renderer/index.ts:77


theme?

ts
optional theme?: object;

Defined in: renderer/index.ts:79

Legacy structured theme (protocol 0.2). Protocol 0.3 ships the theme in css.

light?

ts
optional light?: Record<string, string>;

dark?

ts
optional dark?: Record<string, string>;

defs?

ts
optional defs?: Record<string, ComponentNode>;

Defined in: renderer/index.ts:80


keyBindings?

ts
optional keyBindings?: Record<string, ActionJSON | ActionJSON[]>;

Defined in: renderer/index.ts:81


css?

ts
optional css?: string[];

Defined in: renderer/index.ts:83

Inline CSS blocks injected as <style> (protocol 0.3).


stylesheets?

ts
optional stylesheets?: string[];

Defined in: renderer/index.ts:85

External CSS URLs loaded as <link rel="stylesheet"> (protocol 0.3).


mode?

ts
optional mode?: "light" | "dark";

Defined in: renderer/index.ts:87

Forced color scheme, independent of OS preference (protocol 0.3).


pipes?

ts
optional pipes?: Record<string, string>;

Defined in: renderer/index.ts:89

Custom pipe source code strings — hydrated by the renderer on mount.


layout?

ts
optional layout?: object;

Defined in: renderer/index.ts:91

Size hints for the host container.

preferredHeight?

ts
optional preferredHeight?: number;

minHeight?

ts
optional minHeight?: number;

maxHeight?

ts
optional maxHeight?: number;

Released under the MIT License.