Get Started
UI Examples/Tutorials
- What is zero-true?
- State in zero-true
- User State in zero-true
- Buttons in Zero-True
- Sliders in zero-true
- Range Sliders in zero-true
- Text Inputs in zero-true
- Text Areas in zero-true
- Displaying a Pandas DataFrame in zero-true
- Displaying a Matplotlib Plot in zero-true
- Displaying a Plotly Plot in zero-true
- CLI
- App Bar
- Toolbar
- Cell Types
- Cells
- Layout
- Publishing
API reference
TextInput
Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
id (string): Unique id for a component
hint (string): Hint text for the text input
value (string): The input text value
placeholder (string): Placeholder text
label (string): Label for the text input
readonly (boolean): If true, the input is read-only
disabled (boolean): If true, the input is disabled
Example Usage
import zero_true as zt
sample_textinput = zt.TextInput(
id = 'sample_textinput', # Unique id for a component
hint = 'Press Enter to Submit', # Hint text for the text input
value = '', # The input text value
placeholder = '', # Placeholder text
label = '', # Label for the text input
readonly = False, # If true, the input is read-only
disabled = False, # If true, the input is disabled
)