Skip to content

Commit

Permalink
📝 Revise props.multiLine description
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Jan 8, 2024
1 parent 835f1a0 commit 3f756c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/docs/stories/InputText.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const meta: Meta<typeof InputText> = {
docs: {
description: {
component:
'`InputText` is a React component that renders a textual input (`type: "text"|"email"|"number"|"password"|"search"|"tel"|"url"`) that is uncontrolled, but whose value is overwritten whenever `props.initialValue` changes. Also, if `props.selectTextOnFocus` is true, it selects the entire contents of the input whenever the input is focused. And it supports multiline inputs (via `<textarea>`) that automatically resize vertically to fit their content.',
'`InputText` is a React component that renders a textual input (`type: "text"|"email"|"number"|"password"|"search"|"tel"|"url"`) that is uncontrolled, but whose value is overwritten whenever `props.initialValue` changes. Also, if `props.selectTextOnFocus` is true, it selects the entire contents of the input whenever the input is focused. And it supports multiline inputs (rendered as a `<textarea>`) that automatically resize vertically to fit their content.',
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions packages/input-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
`InputText` is a React component that renders a semi-controlled input,
meaning that while it is [uncontrolled][] in the React sense, it’s value is
overwritten whenever `props.initialValue` changes. It also support
multiline inputs (via `<textarea>`) that automatically resize vertically to
fit their content.
multiline inputs (rendered as a `<textarea>`) that automatically resize
vertically to fit their content.

See the [storybook docs and demo][] to get a feel for what it can do.

Expand Down Expand Up @@ -51,8 +51,8 @@ type Props = {
min?: number;
minLength?: number;
/**
* If true, input renders as a textarea element that automatically grows
* and shrinks to adjust to the length of its contents.
* If true, input renders as a <textarea> that automatically grows and
* shrinks vertically to adjust to the length of its contents.
*/
multiLine?: boolean;
multiple?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/input-text/src/InputText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type Props = {
min?: number;
minLength?: number;
/**
* If true, input renders as a textarea element that automatically grows
* and shrinks to adjust to the length of its contents.
* If true, input renders as a <textarea> that automatically grows and
* shrinks vertically to adjust to the length of its contents.
*/
multiLine?: boolean;
multiple?: boolean;
Expand Down

0 comments on commit 3f756c1

Please sign in to comment.