element-vir
Version:
Heroic. Reactive. Declarative. Type safe. Web components without compromise.
16 lines (15 loc) • 450 B
JavaScript
import { defineElement } from 'element-vir';
import { html } from '../index.js';
import { MyWithInputs } from './my-with-inputs.element.js';
export const MyWithAssignment = defineElement()({
tagName: 'my-with-assignment',
render() {
return html `
<h1>My App</h1>
<${MyWithInputs.assign({
email: 'user@example.com',
username: 'user',
})}></${MyWithInputs}>
`;
},
});