Cookbook / Guard UI

Guard UI

agent

<guard> element — scope-gated UI that renders its children only when the 'admin' scope is verified.

id
guard-ui
since
0.5.0
file
guard-ui.aihu
guardinterpolation

Run it

source · static

This recipe doesn't have a hydrated island in the demo gallery yet. An in-browser, WASM-compiled playground (edit this source and re-render live) is planned as a follow-up — read the real source below.

Source

guard-ui.aihu

Requires

concerns
governance

Anti-patterns

  • Do not treat <guard> as the security boundary — the server must enforce the same scope; the template guard is UX, not authorization.

Related recipes