Form fields·loomora/RangeField

RangeField

A range control that renders its own track and thumb presentation while exposing a controlled numeric value.

Interactive live playground

Tweak props, change states, and see the live component respond in real time.

Live

How to call

Import directly from the Loomora package root. For projects without Tailwind CSS, ensure loomora/dist/index.css is imported once in your root layout.

import { RangeField } from 'loomora'

<RangeField label="Volume" properties={{ value, setValue, min: 0, max: 100, showValue: true }} />

API reference

Important public props and how they affect rendering.

6 props
PropTypeDefaultDescription
properties.valuenumber0Current numeric value.
properties.setValue(value: number) => void—Required callback for controlled updates.
properties.min / maxnumber0 / 0Slider bounds.
properties.stepnumberconfig defaultIncrement between values.
properties.marksRangeMark[][]Optional labeled points on the track.
showValue / showMinMaxbooleanconfig defaultsShows value and endpoint labels.