15 lines
318 B
Svelte
15 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} />
|