HomePaymentsNo-codeDevelopersContribute
Safepay Home PageLive DashboardTest Dashboard

Textarea


The Textarea component provides a multiline text input field that includes an optional character limit feature. It is designed for entering larger amounts of text, with the ability to track and display remaining characters.

Usage

Textarea Basic Usage
import React from 'react';
import { Textarea } from '~/ui/components/Form';

export default function App() {
  return (
    <div>
      <Textarea
        placeholder="Enter your message"
        name="message"
        characterLimit={100}
      />
    </div>
  );
}

Rendered Example

120

Props

NameTypeDefaultDescription
classNamestringundefinedAdditional CSS classes to be applied to the textarea component
characterLimitnumberundefinedOptional limit on the number of characters a user can input
onChangefunctionundefinedHandler for changes to the textarea's value, including character count updates
placeholderstringundefinedA hint to the user about what to type in the textarea
valuestringundefinedSpecifies the value of the textarea
disabledbooleanfalseIndicates whether the textarea is disabled