✨ Announcing our seed funding led by Lux Capital! Read more about it on our blog
DocsBlogChangelog

Search documentation...

/

Star

12k+

[ Learn ]

[ Concepts ]

[ Reference ]

NumberInput


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 index():
    return rx.number_input(
        on_change=NumberInputState.set_number,
    )

NumberInput


The wrapper that provides context and logic to the components.


NumberInputField


The input field itself.


  • No props for NumberInputField.

  • Base Event Triggers

NumberInputStepper


The wrapper for the input's stepper buttons.


  • No props for NumberInputStepper.

  • Base Event Triggers

NumberIncrementStepper


The button to increment the value of the input.


  • No props for NumberIncrementStepper.

  • Base Event Triggers

NumberDecrementStepper


The button to decrement the value of the input.


  • No props for NumberDecrementStepper.

  • Base Event Triggers

← InputPinInput →

Copyright © 2023 Pynecone, Inc.