Skip to main content

TextareaProps

Props of Textarea

This component is an enhanced textarea html component with an animated label and support for dynamic value updates.

Properties

className?

optional className: string

Additional CSS classes applied to the textarea element.


label?

optional label: string

A label displayed above the input field with animation.


onBlur()?

optional onBlur: (val) => void

Focus loss event handler (blur).

Parameters

val

string

Returns

void


onChange()?

optional onChange: (v) => void

Value change handler.

Parameters

v

string

Returns

void


placeholder?

optional placeholder: string

Placeholder text displayed when the value is empty.


skipAnimationOnce?

optional skipAnimationOnce: boolean

Flag that allows you to skip the animation once during initialization.


value

value: string

The current value of the text field.