Layout
When, Else, and Show
Conditional rendering helpers.
Conditional branches are handled by two helpers, When (lazy) and Show
(eager), with an optional .Else chain for either/or rendering.
When
When evaluates the true branch only if cond is true. Prefer it when the
branch constructs anything non-trivial.
Chain .Else for an either/or:
If the condition is false and there is no .Else, When renders an empty
Group node that contributes no visible output but still occupies a slot in
the parent layout for stable identity.
Show
Show evaluates the view eagerly; use it only when the view is cheap to
construct. It is a shorthand for When(cond, func() View { return v }).
If cond is false, Show returns an empty Group node.