Skip to content

@maxhealth.tech/prefab / mcp / DisplayOptions

Interface: DisplayOptions

Defined in: mcp/display.ts:37

Extended by

Properties

title?

ts
optional title?: string;

Defined in: mcp/display.ts:39

Page / app title.


state?

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

Defined in: mcp/display.ts:41

Initial reactive state.


theme?

ts
optional theme?: Theme;

Defined in: mcp/display.ts:43

Light/dark theme overrides.


defs?

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

Defined in: mcp/display.ts:45

Reusable component definitions.


onMount?

ts
optional onMount?: 
  | Action
  | Action[];

Defined in: mcp/display.ts:47

Action(s) to run when the UI mounts.


keyBindings?

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

Defined in: mcp/display.ts:49

Keyboard shortcuts.


cssClass?

ts
optional cssClass?: string;

Defined in: mcp/display.ts:51

Extra CSS class on root element.


layout?

ts
optional layout?: LayoutHints;

Defined in: mcp/display.ts:53

Size hints for the host container (iframe, panel, etc.).


css?

ts
optional css?: string[];

Defined in: mcp/display.ts:55

Inline CSS blocks injected as <style> (merged after the compiled theme).


stylesheets?

ts
optional stylesheets?: string[];

Defined in: mcp/display.ts:57

External CSS URLs loaded as <link rel="stylesheet">.


mode?

ts
optional mode?: ColorMode;

Defined in: mcp/display.ts:59

Force a color scheme regardless of OS preference.


pipes?

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

Defined in: mcp/display.ts:61

Custom pipe functions for reactive expressions.

Released under the MIT License.