<template>
  <base-input
    :label="label"
    :checked="checked"
    :item="item"
    :type="'checkbox'"
    @input="passOn"
  >
    <slot/>
  </base-input>
</template>

<script>
  import BaseInput from '@/components/ui/BaseInput';

  export default {
    props: {
      label: String,
      checked: {
        type: Boolean
      },
      item: Object
    },

    components: {
      BaseInput
    },

    methods: {
      passOn() {
        this.$emit('input', ...arguments);
      }
    }
  };
</script>
