Example Usage

import zero_true as zt

# Create a TextArea component
text_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 layout
layout = zt.Layout(components=[text_area])

Example Output

Overview

pydantic model zero_true.TextArea

The 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.

JSON Schema

Bellow are the various attributes you can assign to the component. Utlizing them can allow for modifications to the pre-created object.
zero_true.TextArea
Zero True Component

Methods

classmethod get_value_from_global_state(value, values)