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
id (string): Unique id for a component
hint (string): Hint text for the number input
value (integer | float): The input number value
label (string): Label for the number input
readonly (boolean): If true, the input is read-only
disabled (boolean): If true, the input is disabled
type (string): Ensures that only numbers are accepted on the frontend
step (integer | float): The number to increment or decrement by
Example Usage
import zero_true as ztsample_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 disabledtype='number',# Ensures that only numbers are accepted on the frontend step =1,# The number to increment or decrement by)