mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update textarea component
This commit is contained in:
@@ -16,7 +16,7 @@ type TextAreaProps = {
|
|||||||
error?: boolean;
|
error?: boolean;
|
||||||
errorMessage?: string;
|
errorMessage?: string;
|
||||||
value: string;
|
value: string;
|
||||||
label: string;
|
label?: string;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
fullWidth?: boolean;
|
fullWidth?: boolean;
|
||||||
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
||||||
@@ -25,6 +25,7 @@ type TextAreaProps = {
|
|||||||
const TextArea = ({
|
const TextArea = ({
|
||||||
color = 'client',
|
color = 'client',
|
||||||
label,
|
label,
|
||||||
|
placeholder,
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
error,
|
error,
|
||||||
@@ -46,7 +47,12 @@ const TextArea = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className='textarea'>
|
<div className='textarea'>
|
||||||
<textarea rows={10} value={value} onChange={onChange} />
|
<textarea
|
||||||
|
rows={10}
|
||||||
|
value={value}
|
||||||
|
onChange={onChange}
|
||||||
|
placeholder={placeholder}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ type WrapperProps = {
|
|||||||
| 'white';
|
| 'white';
|
||||||
error?: boolean;
|
error?: boolean;
|
||||||
errorMessage?: string;
|
errorMessage?: string;
|
||||||
label: string;
|
label?: string;
|
||||||
fullWidth?: boolean;
|
fullWidth?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user