Skip to content

Function: Shield()

Call Signature

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

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

Shield container — protective overlay blocking user interaction.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
Shield({overlay: true}, [
  HeaderBar({title: 'Protected Content'}),
  Group([Text({text: 'This content is protected by a shield'})]),
]);

Call Signature

ts
function Shield(options: ShieldProps, content: ChildBlock[]): Block;

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

Shield container — protective overlay blocking user interaction.

Parameters

ParameterType
optionsShieldProps
contentChildBlock[]

Returns

Block

Example

ts
Shield({overlay: true}, [
  HeaderBar({title: 'Protected Content'}),
  Group([Text({text: 'This content is protected by a shield'})]),
]);

Matterway Assistant SDK Documentation