mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update textarea props
This commit is contained in:
@@ -21,6 +21,7 @@ type TextAreaProps = {
|
|||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
fullWidth?: boolean;
|
fullWidth?: boolean;
|
||||||
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
onChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
||||||
|
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
const TextArea = ({
|
const TextArea = ({
|
||||||
@@ -30,6 +31,7 @@ const TextArea = ({
|
|||||||
placeholder,
|
placeholder,
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
|
onBlur,
|
||||||
error,
|
error,
|
||||||
errorMessage,
|
errorMessage,
|
||||||
...props
|
...props
|
||||||
@@ -55,6 +57,7 @@ const TextArea = ({
|
|||||||
value={value}
|
value={value}
|
||||||
name={name}
|
name={name}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
|
onBlur={onBlur}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user