10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
import { html } from "lit-html";
|
|
|
|
export default (o) => html`
|
|
<fieldset class="form-group">
|
|
${o.label ? html`<label>${o.label}</label>` : '' }
|
|
<img src="data:${o.type};base64,${o.data}">
|
|
<input name="${o.name}" type="text" ?required="${o.required}" />
|
|
</fieldset>
|
|
`;
|