UNPKG

converse.js

Version:
12 lines (9 loc) 428 B
import { html } from "lit"; const tplOption = (o) => html`<option value="${o.value}" ?selected="${o.selected}">${o.label}</option>`; export default (o) => html` <div class="mb-3"> <label for="${o.id}" class="form-label">${o.label}</label> <select class="form-control" id="${o.id}" name="${o.name}" ?multiple="${o.multiple}"> ${o.options?.map(o => tplOption(o))} </select> </div>`;