Hacktron Design System

Slider

A track with a draggable handle for picking a number or a range.

<template>  <Slider v-model="amount" :min="50" :max="10000" :step="50" /></template>

Props

Name Type Default
modelValuenumber | number[]-
minnumber0 (USlider's own default)
maxnumber100 (USlider's own default)
stepnumber1 (USlider's own default)
disabledbooleanfalse
tooltipboolean | TooltipPropsfalse
...propsUSlider props (orientation, color, size, inverted, minStepsBetweenThumbs, ...)-

Guidelines

Do

  • Use for selecting a numeric value (or range) from a bounded scale - e.g. a credit amount, a percentage, a price range.
  • Pair with a visible numeric input or label when the exact value matters - the slider alone doesn't show the current value unless tooltip is enabled.

Don't

  • Don't use for a small, fixed set of discrete options - use RadioGroup or Select instead.
  • Don't rely on the slider as the only way to set a precise value if users are likely to need exact numbers - pair it with an input.