import zero_true as zt# Create a TextArea componenttext_area = zt.TextArea( id="sample_text_area", disabled=False, # If true, the input is disabled hint="Press Enter to Submit", # Hint text for the text input label="Enter Description", # Label for the text input placeholder="Type your text here...", # Placeholder text readonly=False, # If true, the input is read-only triggerEvent="change", # Trigger event to send code to the backend value="" # The input text value)# Assuming you have a mechanism to render or use this TextArea within a layoutlayout = zt.Layout(components=[text_area])
pydantic model zero_true.TextAreaThe TextArea component is designed for capturing larger blocks of text, such as comments, descriptions, or any extensive user feedback. This component is highly adaptable, featuring options for hints, placeholders, and labels to assist users during their input.
It can also be set to a read-only or disabled state to suit different scenarios. This capability, combined with event triggers for backend integration, makes it highly effective for interactive applications requiring detailed text input.