WhenProperties: { children: Element; test: () => boolean }

Properties for When component.

Type declaration

  • children: Element

    Th children to render if test function/signal returns true.

  • test: () => boolean

    Function or signal returning a boolean. When true, then children are rendered, as long as no previous When component matched.