GitHub

Number Input

Numeric input with stepper buttons, decimal support, and model binding.

<rhx-number-input>

Examples

Basic

Decimal Step

No Steppers

Sizes

States

htmx Integration

Total: $29.99 ($29.99/ea)

Properties

Property Type Default Description
rhx-for ModelExpression - ASP.NET Core model expression for two-way binding
name string - The form field name
value string - The current value
rhx-label string - Label text displayed above the input
rhx-hint string - Hint text displayed below the input
rhx-size string medium Input size: small, medium, large
rhx-disabled bool false Whether the input is disabled
rhx-min string - Minimum allowed value
rhx-max string - Maximum allowed value
rhx-step string 1 Step increment for the stepper buttons
rhx-no-steppers bool false Hide the increment/decrement buttons

Accessibility

  • Uses input type="number" with native keyboard support.
  • Stepper buttons have aria-label for screen readers.
  • Min, max, and step constraints are conveyed to assistive technology.