Skip to content

Function: Bubble()

Call Signature

ts
function Bubble(content: ChildBlock[]): Block;

Defined in: src/renderer/blocks/index.ts:237

Bubble container — primary UI container for overlays.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Examples

ts
Bubble([
  HeaderBar({title: 'Modular UI form'}),
  Group([
    InputField({name: 'firstName', label: 'First name', defaultValue: 'Mark'}),
  ]),
  NavigationBar({
    buttons: [
      {text: 'Cancel', value: 'cancel'},
      {text: 'Submit', value: 'submit'},
    ],
  }),
]);
ts
Bubble({overlay: true}, [
  HeaderBar({title: 'Header title'}),
  Group([InputField({name: 'firstName', label: 'First name'})]),
]);

Call Signature

ts
function Bubble(options: BubbleProps, content: ChildBlock[]): Block;

Defined in: src/renderer/blocks/index.ts:238

Bubble container — primary UI container for overlays.

Parameters

ParameterType
optionsBubbleProps
contentChildBlock[]

Returns

Block

Examples

ts
Bubble([
  HeaderBar({title: 'Modular UI form'}),
  Group([
    InputField({name: 'firstName', label: 'First name', defaultValue: 'Mark'}),
  ]),
  NavigationBar({
    buttons: [
      {text: 'Cancel', value: 'cancel'},
      {text: 'Submit', value: 'submit'},
    ],
  }),
]);
ts
Bubble({overlay: true}, [
  HeaderBar({title: 'Header title'}),
  Group([InputField({name: 'firstName', label: 'First name'})]),
]);

Matterway Assistant SDK Documentation