Appearance
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
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
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
| Parameter | Type |
|---|---|
options | ShieldProps |
content | ChildBlock[] |
Returns
Example
ts
Shield({overlay: true}, [
HeaderBar({title: 'Protected Content'}),
Group([Text({text: 'This content is protected by a shield'})]),
]);