<template>
 <input
  v-bind="attrs"
  v-model="model"
  :class="classObject"
  type="range"
 />
</template>

<script setup>
import { useBlock } from "../../../composables/base/useBlock";
import { BlockProps } from "../../../composables/base/useBaseProps";
import { useStateComponent, StateComponentProps } from "../../../composables/view-state/useState/useStateComponent";
import { hProps } from "../../../composables/utils/useProps";
const props = defineProps({
  ...BlockProps,
  ...StateComponentProps,
  tag: {
    type: String,
    default: "input"
  }
});
const model = defineModel({ type: [Boolean, Number, Array] });
const block = useBlock(props);
const { classObject } = useStateComponent(props, model);
const current = {
  class: {
    [`form-range`]: true
  }
};
const attrs = hProps(current, block);
</script>
