Skip to content
Binary UIKit reference Stable

ScrubInput

Native numeric input with optional label dragging, bounds, steps, suffixes, and display formatting.

Use ScrubInput for precise numeric values in an inspector. Keep the native number input as the primary control. Treat label dragging as an optional pointer shortcut.

Interactive example

Loading interactive example

API

Inherited prop contracts

  • AccessibleName Requires exactly one accessible name: label, aria-label, or aria-labelledby.
  • Omit<HTMLInputAttributes, 'type' | 'value' | 'min' | 'max' | 'step' | 'aria-label' | 'aria-labelledby'> Props from this native base are accepted except the listed members.
MemberTypeKindRequiredDefault
aria-labelstringpropNoundefined
aria-labelledbystringpropNoundefined
formatValue(value: number) => stringcallbackNoundefined
labelstringpropNoundefined
maxnumberpropNoundefined
minnumberpropNoundefined
onValueChange(value: number | undefined) => voidcallbackNoundefined
scrubbooleanpropNofalse
stepnumber | 'any'propNo1
suffixstringpropNoundefined
valuenumberbindingNoundefined

Examples

Source

Loading source