1
0
Fork 0
mirror of synced 2024-09-06 04:31:18 +12:00
budibase/packages/standard-components/src/Input.svelte
2021-01-11 15:34:43 +00:00

14 lines
318 B
Svelte

<script>
import { getContext } from "svelte"
const { styleable, setBindableValue } = getContext("sdk")
const component = getContext("component")
let value
function onBlur() {
setBindableValue(value, $component.id)
}
</script>
<input bind:value on:blur={onBlur} use:styleable={$component.styles} />