<template>
  <Switch 
    :value="value" 
    v-bind="$attrs"
    @on-change="handleChange"
  />
</template>

<script>
export default {
  name: 'Switch',
  props: ['value'],
  methods: {
    handleChange(checked) {
      this.$emit('input', checked)
      this.$emit('change', checked)
    }
  }
}
</script>
