UNPKG

element-vir

Version:

Heroic. Reactive. Declarative. Type safe. Web components without compromise.

12 lines (11 loc) 331 B
import { defineElement, html, renderIf } from '../index.js'; export const MyWithRenderIf = defineElement()({ tagName: 'my-with-render-if', render({ inputs }) { return html ` ${renderIf(inputs.shouldRender, html ` I'm conditionally rendered! `)} `; }, });