Appearance
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
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
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
| Parameter | Type |
|---|---|
options | GroupProps |
content | ChildBlock[] |
Returns
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'})],
);