portainer/app/react/components/form-components/Input/Textarea.tsx

16 lines
344 B
TypeScript

import clsx from 'clsx';
import { TextareaHTMLAttributes } from 'react';
export function TextArea({
className,
...props
}: TextareaHTMLAttributes<HTMLTextAreaElement>) {
return (
<textarea
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
className={clsx('form-control', className)}
/>
);
}