Skip to content

Switch and Match

One of several branches.

Switch takes Match children and renders the first one whose when is truthy. The fallback renders when none match.

Like Show, a function in children receives the truthy value of when.