The NumberInput component is similar to the Input component, but it has controls for incrementing or decrementing numeric values.
class NumberInputState(rx.State):
number: int
def number_input_example():
return rc.number_input(
value=NumberInputState.number,
on_change=NumberInputState.set_number,
)
rc.NumberInput
The wrapper that provides context and logic to the components.
rc.NumberInputField
The input field itself.
Props
No component specific props
Event Triggers
See the full list of default event triggersrc.NumberInputStepper
The wrapper for the input's stepper buttons.
Props
No component specific props
Event Triggers
See the full list of default event triggersrc.NumberIncrementStepper
The button to increment the value of the input.
Props
No component specific props
Event Triggers
See the full list of default event triggersrc.NumberDecrementStepper
The button to decrement the value of the input.
Props
No component specific props