File size: 434 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<script>import { melt } from "@melt-ui/svelte";
import { getCtx } from "../ctx.js";
export let el = void 0;
const {
elements: { input },
options: { value, name, disabled, required }
} = getCtx();
$:
inputValue = $value === void 0 || $value === "" ? "on" : $value;
</script>
<input
bind:this={el}
{...$input} use:$input.action
name={$name}
disabled={$disabled}
required={$required}
value={inputValue}
{...$$restProps}
/>
|