Skip to content

Commit

Permalink
Misc copy tweaks
Browse files Browse the repository at this point in the history
+ props reorder
  • Loading branch information
cee-chen committed Jan 5, 2024
1 parent 4c2fc10 commit 6b869c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion changelogs/upcoming/7449.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Updated `EuiTextArea` to accept isClearable and icon as props
- Updated `EuiTextArea` to accept `isClearable` and `icon` as props
14 changes: 7 additions & 7 deletions src/components/form/text_area/text_area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ import { EuiFormControlLayoutIconsProps } from '../form_control_layout/form_cont

export type EuiTextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> &
CommonProps & {
icon?: EuiFormControlLayoutIconsProps['icon'];
isLoading?: boolean;
isInvalid?: boolean;
/**
* Shows a button that allows users to quickly clear the textarea
*/
isClearable?: boolean;
/**
* Expand to fill 100% of the parent.
* Defaults to `fullWidth` prop of `<EuiForm>`.
* @default false
*/
fullWidth?: boolean;
compressed?: boolean;
/**
* Shows a button that quickly clears any input
*/
isClearable?: boolean;
icon?: EuiFormControlLayoutIconsProps['icon'];

/**
* Which direction, if at all, should the textarea resize
Expand Down Expand Up @@ -58,15 +58,15 @@ export const EuiTextArea: FunctionComponent<EuiTextAreaProps> = (props) => {
compressed,
fullWidth = defaultFullWidth,
id,
icon,
inputRef,
isLoading,
isInvalid,
isClearable,
name,
placeholder,
resize = 'vertical',
rows,
isClearable,
icon,
...rest
} = props;

Expand Down

0 comments on commit 6b869c2

Please sign in to comment.