diff --git a/packages/components/src/atoms/Textarea/Textarea.tsx b/packages/components/src/atoms/Textarea/Textarea.tsx new file mode 100644 index 0000000000..c5a061c020 --- /dev/null +++ b/packages/components/src/atoms/Textarea/Textarea.tsx @@ -0,0 +1,33 @@ +import type { TextareaHTMLAttributes } from 'react' +import React, { forwardRef } from 'react' + +export interface TextareaProps + extends TextareaHTMLAttributes { + /** + * ID to find this component in testing tools (e.g.: cypress, testing library, and jest). + */ + testId?: string + /** + * Controls the resize property of the textare (e.g.: none, vertical, horizontal, both). + * Default is 'both'. + */ + resize?: 'none' | 'vertical' | 'horizontal' | 'both' +} + +const Textarea = forwardRef( + function Textarea( + { testId = 'fs-textarea', resize = 'both', ...otherProps }, + ref + ) { + return ( +