Skip to content

Function: Vertical()

Call Signature

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

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

Vertical layout — arranges content in a column.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Examples

ts
Vertical([
  InputField({name: 'firstName', label: 'First name'}),
  InputField({name: 'lastName', label: 'Last name'}),
]);
ts
Vertical(
  {gap: 8, align: 'center', justify: 'space-between', padding: 16},
  [
    InputField({name: 'email', label: 'Email', type: 'email'}),
    InputField({name: 'phone', label: 'Phone', type: 'tel'}),
  ],
);

Call Signature

ts
function Vertical(options: VerticalProps, content: ChildBlock[]): Block;

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

Vertical layout — arranges content in a column.

Parameters

ParameterType
optionsVerticalProps
contentChildBlock[]

Returns

Block

Examples

ts
Vertical([
  InputField({name: 'firstName', label: 'First name'}),
  InputField({name: 'lastName', label: 'Last name'}),
]);
ts
Vertical(
  {gap: 8, align: 'center', justify: 'space-between', padding: 16},
  [
    InputField({name: 'email', label: 'Email', type: 'email'}),
    InputField({name: 'phone', label: 'Phone', type: 'tel'}),
  ],
);

Matterway Assistant SDK Documentation