Skip to content

Textarea

Textarea

Textarea provides multi-line text input with support for character limits, validation, and length display.

PropertyValue
Min-height80-120px
Border Width1px
Corner Radius12px (rounded-xl)
Padding12-16px
Font Size14px (text-f-14)
Line Height6 (24px)
ScrollbarCustom webkit-scrollbar (6px width)

Grey40 border, normal state with optional header/footer length indicator.

Pending State

Input with reset icon (config.isReset) to clear content.

Pending State
OptionTypeDescription
requiredbooleanAdds red asterisk
maxlengthnumberHard limit for input
showInputLengthbooleanShows length counter in header
showBottomLengthbooleanShows length counter in footer
isResetbooleanEnables reset button
resetIconstringURL for reset icon
fieldClassesstringCustom tailwind classes for field

Counters can be placed in two locations:

  • Header: Top-right corner (via showInputLength)
  • Footer: Bottom-right corner (via showBottomLength)

Format: Value / Max (e.g., 0/500)

  • Multi-line text input (addresses, descriptions)
  • Comments or feedback fields
  • Longer form responses
  • When user needs to enter paragraphs
✅ Do❌ Don’t
Set appropriate default row countUse for single-line input (use input)
Use maxlength for bounded inputSet arbitrary small limits
Show remaining charactersHide character count
Provide clear labelsMake required fields unclear

View in Storybook →