<script>
    import { createEventDispatcher } from 'svelte';
    import Setting from './Setting.svelte';

    export let title;
    export let value;

    const dispatch = createEventDispatcher();
</script>


<Setting {title}>
    <div slot="input">
        <input
            type="text"
            class="input input-sm input-bordered grow text-right"
            bind:value
            on:change={() => dispatch('update', {value})}
        >
    </div>
    <slot name="description" slot="description"></slot>
</Setting>
