2021-12-20 19:21:19 +02:00
|
|
|
import clsx from 'clsx';
|
|
|
|
import { TextareaHTMLAttributes } from 'react';
|
2021-11-17 11:32:57 -07:00
|
|
|
|
2024-04-11 12:11:38 +12:00
|
|
|
import { AutomationTestingProps } from '@/types';
|
|
|
|
|
2021-12-20 19:21:19 +02:00
|
|
|
export function TextArea({
|
2021-11-17 11:32:57 -07:00
|
|
|
className,
|
2021-12-20 19:21:19 +02:00
|
|
|
...props
|
2024-04-11 12:11:38 +12:00
|
|
|
}: TextareaHTMLAttributes<HTMLTextAreaElement> & AutomationTestingProps) {
|
2021-11-17 11:32:57 -07:00
|
|
|
return (
|
2021-12-20 19:21:19 +02:00
|
|
|
<textarea
|
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
{...props}
|
|
|
|
className={clsx('form-control', className)}
|
2021-11-17 11:32:57 -07:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|