2019-10-16 06:38:45 +02:00
|
|
|
<script>
|
2020-11-18 22:06:12 +01:00
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
2020-11-20 10:50:10 +01:00
|
|
|
const { styleable } = getContext("sdk")
|
|
|
|
const styles = getContext("style")
|
2020-11-18 22:06:12 +01:00
|
|
|
|
2020-02-03 10:50:30 +01:00
|
|
|
export let value = ""
|
|
|
|
export let className = ""
|
|
|
|
export let type = "text"
|
2019-10-16 06:38:45 +02:00
|
|
|
|
2020-02-03 10:50:30 +01:00
|
|
|
const onchange = ev => {
|
2020-11-18 22:06:12 +01:00
|
|
|
value = ev.target.value
|
2020-02-03 10:50:30 +01:00
|
|
|
}
|
2019-10-16 06:38:45 +02:00
|
|
|
</script>
|
|
|
|
|
2020-11-18 22:06:12 +01:00
|
|
|
<input
|
|
|
|
class={className}
|
|
|
|
{type}
|
|
|
|
{value}
|
|
|
|
on:change={onchange}
|
|
|
|
use:styleable={styles} />
|