FloatRangeWidget
This is a React component

Source
import { FloatRangeWidget } from "@prestojs/ui-antd";
FloatRangeWidget(props)

See InputNumber for props available

As with all range widgets, ref should be shaped as { lowerRef: Ref(), upperRef: Ref() }

You may pass in props to be used for the individual input as lowerInput / upperInput

ParameterTypeDescription
props.classNamestring

className for the wrapper class.

*props.input

the input coming from form; value and onChange of it is used by the RangedWidget.

*props.lowerInput

Any props you want to pass to the first ("lower") Input of a range. Props available depends on type of range widget being used.

props.metaRecord

Any extra details such as field errors, touched status etc. The values here depend on the form library in use. If using @prestojs/final-form see FieldRenderProps for what this will be.

*props.separatorstring

Separator between two Input elements; defaults to -.

*props.upperInput

Any props you want to pass to the second ("upper") Input of a range. Props available depends on type of range widget being used.