motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Input
  5. Range Input
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Input

Range Input

New

A from-to pair for budgets and prices with a two-thumb slider and quick range chips.

npx motionsnack add range-input

Customize

px
px
<RangeInput />

Props

23 properties

PropertyTypeDefaultDescription
value[number, number]-Controlled range. Leave undefined to let the component manage it.
defaultValue[number, number][2000, 8000]Range on first render when uncontrolled.
onChange(value: [number, number]) => void-Called with [from, to] on every change.
onChangeEnd(value: [number, number]) => void-Called with [from, to] when a drag or a key press on the slider ends.
durationnumber-Deprecated: the slider glides with the standard 300ms.
namestring-Name of the form values; they go as <name>-from and <name>-to.
idstringgeneratedId of the first input.
classNamestring''Extra classes on the wrapper.
labelstring'Budget'Label above the fields. Empty hides it.
minLabelstring'From'Small label inside the first field.
maxLabelstring'To'Small label inside the second field.
minnumber0Lowest value.
maxnumber20000Highest value.
stepnumber500Step of the slider and the smallest gap between the two values.
prefixstring'€'Text before each value, e.g. a currency sign. Empty hides it.
suffixstring''Text after each value, e.g. kg. Empty hides it.
localestring'en-US'Locale of the thousands separator, e.g. en-US or cs-CZ.
showSliderbooleantrueShow the two-thumb slider under the fields.
presetsstring'Under 2k:0-2000, 2k-5k:2000-5000, 5k-10k:5000-10000, 10k+:10000-20000'Quick ranges as chips, Label:from-to separated by commas. Empty hides them.
helperTextstring'A rough range is enough. We will refine it together.'Small text under the range. Empty hides it.
disabledbooleanfalseDisables the fields and the slider.
heightnumber48Height of a field (48, or 40 compact).
radiusnumber12Corner radius of a field.

About Range Input

Range Input asks for a range instead of one number: a budget, a price band or a size. Two fields sit side by side with a small label, a currency or unit and thousands separators in the locale you choose. Under them a slider with two thumbs follows every keystroke and drives the fields when dragged, and the thumbs stop one step apart so they never cross. Preset chips glide the thumbs to a ready range and light up when it matches. If someone types the range the wrong way round, the two values swap with a short flip when the field loses focus. The fill and the active chip are black and white, and every field and thumb shows the library's clear focus outline.

What's included

  • Two linked fields with prefix, suffix and locale formatting
  • Two-thumb slider that never crosses
  • Preset chips that glide the slider
  • Swap with a flip for a reversed range
  • Keyboard and screen reader friendly
  • Hidden form values for from and to
  • Light and dark look
Type
Animated React input component
Library
Components · Input
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add range-input