Skip to content

Slider

Range input for numeric settings and thresholds.

Usage

vue
<script setup>
import { ref } from "vue";
import { ArchSlider } from "@archora/ui";

const threshold = ref(70);
</script>

<template>
  <ArchSlider v-model="threshold" label="Risk threshold" show-value />
</template>

Live sandbox

Slider can be tested directly on this page.

interactive
<Slider />

Props

PropTypeDefaultDescription
modelValuenumber-v-model value.
labelstring-Accessible label or text.
minnumber0Minimum value.
maxnumber100Maximum value.
stepnumber1Step.
disabledbooleanfalseDisables the component.
showValuebooleanfalseShows the current value.

Events

EventPayloadDescription
update:modelValuevalue: numbermodelValue change.