@tempots/dom

LazyUnless() function

Lazily renders content when a condition is false.

Signature:

LazyUnless: (condition: Value<boolean>, then: () => TNode, otherwise?: () => TNode) => Renderable

Parameters

Parameter

Type

Description

condition

Value

The condition to evaluate

then

() => TNode

Function returning content to render if condition is false

otherwise

() => TNode

(Optional) Optional function returning content to render if condition is true

Returns: Renderable

Renderable content