Skip to content

Slider

Caution: Slippery

Example

Show Code
vue
<script lang="ts" setup>
import { RSlider } from 'roughness'
import { ref } from 'vue'

let value = ref(62)
</script>

<template>
  <RSlider v-model="value" />
</template>

Usage

Props

NameTypeDefault ValueDescription
graphicsOptions
max
min
modelValue
step

Events

NameTypeDescription
update:modelValue

Styles

NameTypeDefault ValueDescription
--r-slider-color
--r-slider-border-color
--r-slider-border-width
--r-slider-control-size
--r-slider-track-size

Released under the ISC License.