# Range input with value indicator

> Range input with value indicator

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-input-29).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-input-29
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-input-29-light-2ff97e0316d17d92.png
- Registry item: https://reui.io/r/new-york-v4/c-input-29.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-input-29.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `field`, `input`

## Files

### `c-input-29.tsx`

```tsx
"use client"

import { useState } from "react"

import { Field, FieldLabel } from "@/components/ui/field"
import { Input } from "@/components/ui/input"

export function Pattern() {
  const [value, setValue] = useState(50)

  return (
    <Field className="w-full max-w-xs">
      <div className="flex items-center justify-between">
        <FieldLabel htmlFor="range-slider">Volume</FieldLabel>
        <span className="text-muted-foreground text-xs font-medium">
          {value}
        </span>
      </div>
      <Input
        id="range-slider"
        type="range"
        min="0"
        max="100"
        value={value}
        onChange={(e) => setValue(parseInt(e.target.value))}
        className="bg-muted accent-primary h-2 cursor-pointer appearance-none"
      />
    </Field>
  )
}
```
