ChatiumFor developersPlaygroundPricing
Sign in

Textarea

Properties

  • onInput ((value: string, event: InputEvent) => void):
    A function that is called when the content of the text field changes. It takes the new value of the field and the event.
  • style (JSX.CSSProperties):
    Inline styles for the text field.
  • autosize (boolean):
    If true, the text field will automatically adjust its height based on the content. Default is false.
  • formId (string):
    An identifier for linking with a form.
  • minHeight (number):
    The minimum height of the text field. The default is 37px.

Features

Automatic height adjustment: When the autosize property is enabled, the text field will automatically increase or decrease in height to match the content, and the minimum height can be adjusted using the minHeight property. Response to value changes: The component tracks changes in value and adjusts the height according to the content.