Search
Search for a page

Slider

An elegant range input featuring physical motion, jelly-like wobbles, and elastic animations.

bunx shadcn-svelte@latest add https://ui.grgurevic.click/r/slider.json

Usage

Horizontal and vertical orientation layout presets.

45%
60%

Best practices

The best practices when using range sliders.

  • Add numeric labels next to sliders to display the active value. For precision entry, pair with an logoInput field that syncs to the same state.
  • Set logical min and max limits that fit the input domain context.
  • Enable the vertical orientation only when horizontal space is constrained.
  • Avoid nesting multiple sliders too closely to prevent accidental dual drags.

Props

The props available for the Slider component.

PropTypeDefaultDescription
valuenumber | number[]0Two-way bindable active value representing the track percentage.
orientation"horizontal" | "vertical""horizontal"Aligns track layout and slide dragging boundaries.
minnumber0Minimum boundary threshold.
maxnumber100Maximum boundary threshold.
liquidGlassbooleanfalseEnables physical liquid glass refraction (Chromium only).
refractiveIndexnumber1.5IOR of glass curvature. Range 1.0 (air) to 2.4.
bezelWidthnumber8Depth of bezel refraction zone (px).
displacementScalenumber25Intensity of physical refraction offset.
Previous Sheet
Give feedback
Next Switch