Skip to content

Commit

Permalink
fix: Added Rows and AutoResize props to LongTextField
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam Gupta authored and lordrip committed Apr 24, 2024
1 parent 2ae2f50 commit 36bdbc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/LongTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export type LongTextFieldProps = HTMLFieldProps<
onChange: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
value?: string;
prefix?: string;
autoResize?: boolean;
}
>;

Expand All @@ -42,6 +43,8 @@ function LongTextField({
onChange,
placeholder,
value,
rows,
autoResize,
...props
}: LongTextFieldProps) {
return wrapField(
Expand All @@ -57,6 +60,8 @@ function LongTextField({
ref={inputRef}
resizeOrientation="vertical"
value={value ?? ""}
rows={rows}
autoResize={autoResize}
/>
);
}
Expand Down

0 comments on commit 36bdbc5

Please sign in to comment.