Skip to content
Binary Dreams UI Kit reference ScrubInput

Scrub input

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

Loading interactive example

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. Compose a duration editor with Select and an explicit Apply button. Keep raw interval text available when the server accepts a broader grammar.

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