diff --git a/rsconcept/frontend/src/components/Common/TextArea.tsx b/rsconcept/frontend/src/components/Common/TextArea.tsx index fc84493c..ec8ceed8 100644 --- a/rsconcept/frontend/src/components/Common/TextArea.tsx +++ b/rsconcept/frontend/src/components/Common/TextArea.tsx @@ -1,24 +1,20 @@ +import { TextareaHTMLAttributes } from 'react'; + import Label from './Label'; -interface TextAreaProps { - id: string +interface TextAreaProps +extends Omit, 'className'> { label: string - required?: boolean - disabled?: boolean - spellCheck?: boolean - placeholder?: string widthClass?: string - rows?: number - value?: string | ReadonlyArray | number | undefined; - onChange?: (event: React.ChangeEvent) => void - onFocus?: () => void + colorClass?: string } function TextArea({ - id, label, placeholder, - required, spellCheck, disabled, - widthClass = 'w-full', rows = 4, value, - onChange, onFocus + id, label, required, + widthClass = 'w-full', + colorClass = 'colorClass', + rows = 4, + ...props }: TextAreaProps) { return (
@@ -28,15 +24,10 @@ function TextArea({ htmlFor={id} />