Skip to main content

Textarea

Textarea is a component that allows users to enter multiple lines of text.

Example

import { Textarea } from '@fluid-design/fluid-ui';
const Example = () => {
return (
<Form
initialValues={{
message: '',
}}
>
<Textarea label='Message' name='message' maxRows={4} />
</Form>
);
};

Component API

PropDefaultDescription
name-String

Input field name

labelString

Input field label, if not provided, the label will be the same as the name

placeholderString

Input field placeholder, if label is not provided, this will replace the label field

descriptionString

Input field description showing under this field