<template>
    <div class="mb-2">
        <label v-if="label">{{ label }}</label>
        <v-switch
            v-model="form[input_name]"
            color="primary"
            :value="1"
            hide-details
        ></v-switch>
        <div class="text-danger text-left" v-if="form.errors.has(input_name)" v-text="form.errors.get(input_name)"></div>
    </div>

</template>

<script type="text/javascript">
    import {ToggleButton} from 'vue-js-toggle-button'

	export default {
        props: {
            input_name: String,
            form: Object,
            label: String
        }
	}
</script>