When

fun Html.When(condition: Signal<Boolean>, fallback: Children? = null, children: Children)(source)

A dynamic conditional component. Renders children while the condition is true, otherwise the fallback condition.

Since

0.1.0

Parameters

condition

the conditional

fallback

the component to render when condition is false

children

the default component to render