Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Mar 14, 2024
1 parent a5b5109 commit 6184085
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/data/base/components/input/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ The `multiline` prop transforms the `<input>` field into a `<textarea>` element,

{{"demo": "InputMultiline.js"}}

If you want the `<textarea>` to grow with the content, you can use the [Textarea Autosize](/base-ui/react-textarea-autosize/) component within the input.
If you want the `<textarea>` to grow with the content, you can use the [Textarea](/base-ui/react-textarea/) component within the input.

When using Textarea Autosize, the height of the `<textarea>` element dynamically matches its content unless you set the `rows` prop.
When using Textarea, the height of the `<textarea>` element dynamically matches its content unless you set the `rows` prop.
To set minimum and maximum sizes, add the `minRows` and `maxRows` props.

The following demo shows how to insert a Textarea Autosize component into an Input so that its height grows with the length of the content:
The following demo shows how to insert a Textarea component into an Input so that its height grows with the length of the content:

{{"demo": "InputMultilineAutosize.js"}}

Expand Down
1 change: 0 additions & 1 deletion docs/data/base/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const pages: readonly MuiPage[] = [
{ pathname: '/base-ui/react-popper', title: 'Popper' },
{ pathname: '/base-ui/react-popup', title: 'Popup', unstable: true },
{ pathname: '/base-ui/react-portal', title: 'Portal' },
{ pathname: '/base-ui/react-textarea-autosize', title: 'Textarea Autosize' },
{ pathname: '/base-ui/react-transitions', title: 'Transitions' },
],
},
Expand Down
4 changes: 2 additions & 2 deletions docs/src/modules/components/BaseUIComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ function components() {
href: '/base-ui/react-tabs/',
},
{
title: 'Textarea Autosize',
title: 'Textarea',
srcLight: '/static/base-ui/react-components/textarea-light.png',
srcDark: '/static/base-ui/react-components/textarea-dark.png',
href: '/base-ui/react-textarea-autosize/',
href: '/base-ui/react-textarea/',
},
];
}
Expand Down
5 changes: 3 additions & 2 deletions docs/translations/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
"/base-ui/react-select": "Select",
"/base-ui/react-slider": "Slider",
"/base-ui/react-switch": "Switch",
"/base-ui/react-textarea": "Textarea",
"/base-ui/react-toggle-button-group": "Toggle Button Group",
"data-display": "Data display",
"/base-ui/react-badge": "Badge",
Expand Down Expand Up @@ -285,8 +286,8 @@
"/base-ui/react-table-pagination/components-api/#table-pagination": "TablePagination",
"/base-ui/react-tabs/components-api/#tabs": "Tabs",
"/base-ui/react-tabs/components-api/#tabs-list": "TabsList",
"/base-ui/react-textarea-autosize/components-api/#textarea": "Textarea",
"/base-ui/react-textarea-autosize/components-api/#textarea-autosize": "TextareaAutosize",
"/base-ui/react-textarea/components-api/#textarea": "Textarea",
"/base-ui/react-textarea/components-api/#textarea-autosize": "TextareaAutosize",
"/base-ui/react-autocomplete/hooks-api/#use-autocomplete": "useAutocomplete",
"/base-ui/react-badge/hooks-api/#use-badge": "useBadge",
"/base-ui/react-button/hooks-api/#use-button": "useButton",
Expand Down

0 comments on commit 6184085

Please sign in to comment.