budibase/packages/standard-components/src/Input.svelte

13 lines
332 B
Svelte

<script>
import { getContext } from "svelte"
const { styleable, setBindableValue } = getContext("sdk")
const component = getContext("component")
// Keep bindable value up to date
let value
$: setBindableValue(value, $component.id)
</script>
<input bind:value on:change={onchange} use:styleable={$component.styles} />