UNPKG

@neu-ui/web-components

Version:

A Neumorphic web component library built with @microsoft/fast-element and Vite using javascript

30 lines (29 loc) 758 B
import { html as a } from "@microsoft/fast-element"; const i = a` <slot name="label"></slot> <div class="input-wrapper" part="input-wrapper" ?disabled="${(e) => e.disabled}" > <slot name="start"></slot> <input class="input" part="input" :value="${(e) => e.value}" placeholder="${(e) => e.placeholder}" type="${(e) => e.type}" id="${(e) => e.id}" ?required="${(e) => e.required}" ?disabled="${(e) => e.disabled}" size="${(e) => e.size}" aria-required="${(e) => e.required ? "true" : "false"}" @input="${(e, t) => e.handleInput(t.event)}" @change="${(e, t) => e.handleChange(t.event)}" /> <slot name="end"></slot> </div> `; export { i as template };