Components
Textarea

Textarea

Import

import { Textarea } from "@vivakits/react-components";

Variant

The Textarea component comes with 2 different variants that you can change it using the variant prop.

Size

The Textarea component comes with 6 different sizes that you can change it using the size prop.

Color

The Textarea component comes with 6 different colors that you can change it using the color prop. It has both solid and outline variant.

Rounded

The shape of the Textarea component can be updated using rounded prop.

Error

Conditional error handling for Textarea can be done via hasError props. Error message can also be modified via errorMessage props.

Invalid input value

Custom error message

Others

The Textarea component offers various configuration options to handle different use cases.

API Reference

AttributeTypeDescriptionDefault
vairantsolidoutlineChanges Textarea appreancesolid
colorprimarysecondaryaccentsuccesswarningdangerChanges Textarea colorprimary
sizesmmdlgxlChanges Textarea sizemd
roundeddefaultnonexssmmdlgfulllChanges the border radius of Textareaprimary
placeholderstringPlace a text inside the Textarea box -
labelstringlabel of the Textarea box -
labelPositionstartendhorizontalDetermine the position of the label of Textarea box start
labelClassNamestringChanges style of the label of Textarea box -
hasErrorbooleanShows error false
errorMessagestringModify the error messageInvalid Textarea value
wrapperClassNamestringCustomize the appearance of the textarea container -
classNamestringCustomize the appearance of the textarea element -