Skip to content

Function: Group()

Call Signature

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

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

Group container — groups child elements with optional title/description.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Examples

ts
Group([
  InputField({name: 'firstName', label: 'First name', defaultValue: 'John'}),
  InputField({name: 'lastName', label: 'Last name', defaultValue: 'Doe'}),
]);
ts
Group(
  {title: 'Personal Information', description: 'Please fill in your details', collapsible: true},
  [InputField({name: 'email', label: 'Email', type: 'email'})],
);

Call Signature

ts
function Group(options: GroupProps, content: ChildBlock[]): Block;

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

Group container — groups child elements with optional title/description.

Parameters

ParameterType
optionsGroupProps
contentChildBlock[]

Returns

Block

Examples

ts
Group([
  InputField({name: 'firstName', label: 'First name', defaultValue: 'John'}),
  InputField({name: 'lastName', label: 'Last name', defaultValue: 'Doe'}),
]);
ts
Group(
  {title: 'Personal Information', description: 'Please fill in your details', collapsible: true},
  [InputField({name: 'email', label: 'Email', type: 'email'})],
);

Matterway Assistant SDK Documentation