Slider

A value in a range.

Default

A value in a range, with the value in words.

<script setup>
import { ref } from 'vue';
import { Field, FieldLabel } from '@aisgroup/design/ui/field';
import { Slider } from '@aisgroup/design/ui/slider';
const v = ref([24]);
</script>

<template>
  <Field class="w-full max-w-sm">
    <FieldLabel>Brush size, {{ v[0] }} px</FieldLabel>
    <Slider v-model="v" :min="2" :max="80" />
  </Field>
</template>

Type to search the guide.