Components
NumberInput
Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
zero_true.NumberInput
Zero True Component
Example Usage
import zero_true as zt
sample_numberinput = zt.NumberInput(
id = 'sample_numberinput', # Unique id for a component
hint = 'Press Enter to Submit', # Hint text for the number input
value = 0, # The input number value
label = '', # Label for the number input
readonly = False, # If true, the input is read-only
disabled = False, # If true, the input is disabled
type = 'number', # Ensures that only numbers are accepted on the frontend
step = 1, # The number to increment or decrement by
)