diff --git a/docs/src/pages/components/radio-buttons/ColorRadioButtons.tsx b/docs/src/pages/components/radio-buttons/ColorRadioButtons.tsx
index facc2b479e852b..692a13ba57328a 100644
--- a/docs/src/pages/components/radio-buttons/ColorRadioButtons.tsx
+++ b/docs/src/pages/components/radio-buttons/ColorRadioButtons.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { green } from '@material-ui/core/colors';
+import { pink } from '@material-ui/core/colors';
import Radio from '@material-ui/core/Radio';
export default function ColorRadioButtons() {
@@ -21,13 +21,14 @@ export default function ColorRadioButtons() {
-
+
+
diff --git a/docs/src/pages/components/radio-buttons/radio-buttons-de.md b/docs/src/pages/components/radio-buttons/radio-buttons-de.md
index 845d547fd2968e..551e3cd261e567 100644
--- a/docs/src/pages/components/radio-buttons/radio-buttons-de.md
+++ b/docs/src/pages/components/radio-buttons/radio-buttons-de.md
@@ -16,13 +16,23 @@ Bei Optionsschaltflächen sollte die am häufigsten verwendete Option standardm
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## RadioGroup
+## Radio group
`RadioGroup` ist ein hilfreicher Wrapper zur Gruppierung von `Optionsfelder` Komponenten, der eine einfachere API und den richtigen Zugriff der Tastatur auf die Gruppe bietet.
{{"demo": "pages/components/radio-buttons/RadioButtonsGroup.js"}}
-To lay out the buttons horizontally, set the `row` prop: `
`.
+### Direction
+
+To lay out the buttons horizontally, set the `row` prop:
+
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Controlled
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
## Standalone radio buttons
@@ -30,6 +40,16 @@ To lay out the buttons horizontally, set the `row` prop: `
`.
{{"demo": "pages/components/radio-buttons/RadioButtons.js"}}
+## Size
+
+Use the `size` prop or customize the font size of the svg icons to change the size of the radios.
+
+{{"demo": "pages/components/radio-buttons/SizeRadioButtons.js"}}
+
+## Farbe (Color)
+
+{{"demo": "pages/components/radio-buttons/ColorRadioButtons.js"}}
+
## Etikettenplatzierung
You can change the placement of the label with the `FormControlLabel` component's `labelPlacement` prop:
@@ -63,11 +83,11 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
#### Rückgabewerte
-`value` (_Object_):
+`value` (_object_):
-- `value.name` (_String_ [optional]): The name used to reference the value of the control.
-- `value.onChange` (_Void_ [optional]): Callback fired when a radio button is selected.
-- `value.value` (_Any_ [optional]): Value of the selected radio button.
+- `value.name` (_string_ [optional]): The name used to reference the value of the control.
+- `value.onChange` (_func_ [optional]): Callback fired when a radio button is selected.
+- `value.value` (_any_ [optional]): Value of the selected radio button.
#### Beispiel
@@ -85,7 +105,7 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
- Wenn ein Label nicht verwendet werden kann, muss der Eingabekomponente ein Attribut direkt hinzugefügt werden. In diesem Fall können Sie das zusätzliche Attribut (z. B. `aria-label`, `aria-labelby`, `title`) über die Eigenschaft `inputProps` anwenden.
```jsx
-
`.
+### Direction
+
+To lay out the buttons horizontally, set the `row` prop:
+
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Controlled
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
## Standalone radio buttons
@@ -30,6 +40,16 @@ Para poner los botones de forma horizontal, establezca el `fila` prop: `
Les radios buttons permettent a l'utilisateur de sélectionner un choix parmi un ensemble de choix.
-Ici [buttons radio](https://material.io/design/components/selection-controls.html#radio-buttons) toutes les options. Si les options disponibles peuvent être réduites, envisagez d'utiliser un menu déroulant, car il utilise moins d'espace disponibles.
+Utilisez les cases d’option lorsque l’utilisateur a besoin de voir toutes les options disponibles. Si les options disponibles peuvent être réduites, envisagez d'utiliser un menu déroulant, car il utilise moins d'espace disponibles.
Généralement, les cases d'option doivent avoir l'option la plus utilisée sélectionnée par défaut.
@@ -22,14 +22,34 @@ Généralement, les cases d'option doivent avoir l'option la plus utilisée sél
{{"demo": "pages/components/radio-buttons/RadioButtonsGroup.js"}}
+### Direction
+
To lay out the buttons horizontally, set the `row` prop: ` `.
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Checkbox personnalisée
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
+
## Standalone radio buttons
`Radio` can also be used standalone, without the RadioGroup wrapper.
{{"demo": "pages/components/radio-buttons/RadioButtons.js"}}
+## Size
+
+Use the `size` prop or customize the font size of the svg icons to change the size of the radios.
+
+{{"demo": "pages/components/radio-buttons/SizeRadioButtons.js"}}
+
+## Couleur
+
+{{"demo": "pages/components/radio-buttons/ColorRadioButtons.js"}}
+
## Emplacement du label
You can change the placement of the label with the `FormControlLabel` component's `labelPlacement` prop:
@@ -50,7 +70,7 @@ Voici un exemple de personnalisation du composant. Vous pouvez en savoir plus da
## `useRadioGroup`
-For advanced customization use cases, a `useRadioGroup()` hook is exposed. It returns the context value of the parent radio group. The Radio component uses this hook internally.
+Pour les cas d'utilisation de personnalisation avancée, utilisez la fonction `useRadioGroup()`. Cela retourne la valeur de contexte du groupe radio parent. Le composant Radio utilise ce hook en interne.
### API
diff --git a/docs/src/pages/components/radio-buttons/radio-buttons-ja.md b/docs/src/pages/components/radio-buttons/radio-buttons-ja.md
index a450d42202e695..8cf9c98cd8959f 100644
--- a/docs/src/pages/components/radio-buttons/radio-buttons-ja.md
+++ b/docs/src/pages/components/radio-buttons/radio-buttons-ja.md
@@ -16,13 +16,23 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#radiobutton'
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## RadioGroup
+## Radio group
`RadioGroup` は、 `Radio` コンポーネントをグループ化するのに使用される便利なラッパーで、より簡単なAPIと、グループへの適切なキーボードアクセシビリティを提供します。
{{"demo": "pages/components/radio-buttons/RadioButtonsGroup.js"}}
-To lay out the buttons horizontally, set the `row` prop: ` `.
+### 方向
+
+To lay out the buttons horizontally, set the `row` prop:
+
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Controlled
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
## Standalone radio buttons
@@ -30,6 +40,16 @@ To lay out the buttons horizontally, set the `row` prop: ` `.
{{"demo": "pages/components/radio-buttons/RadioButtons.js"}}
+## Size
+
+Use the `size` prop or customize the font size of the svg icons to change the size of the radios.
+
+{{"demo": "pages/components/radio-buttons/SizeRadioButtons.js"}}
+
+## カラー
+
+{{"demo": "pages/components/radio-buttons/ColorRadioButtons.js"}}
+
## ラベルの配置
You can change the placement of the label with the `FormControlLabel` component's `labelPlacement` prop:
@@ -44,13 +64,13 @@ In general, radio buttons should have a value selected by default. If this is no
## カスタマイズされたラジオ
-コンポーネントのカスタマイズ例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズ例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/radio-buttons/CustomizedRadios.js"}}
## `useRadioGroup`
-For advanced customization use cases, a `useRadioGroup()` hook is exposed. It returns the context value of the parent radio group. The Radio component uses this hook internally.
+高度なカスタマイズのユースケース向けに、 `useRadioGroup()` フックが公開されています。 これは親のラジオボタングループのコンテキスト値を返します。 Radioコンポーネントは内部でこのフックを使用します。
### API
@@ -63,11 +83,11 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
#### 戻り値
-`value` (_Object_):
+`value` (_object_):
-- `value.name` (_String_ [optional]): The name used to reference the value of the control.
-- `value.onChange` (_Void_ [optional]): Callback fired when a radio button is selected.
-- `value.value` (_Any_ [optional]): Value of the selected radio button.
+- `value.name` (_string_ [optional]): コントロールの値を参照するために使用される名前。
+- `value.onChange` (_func_ [optional]): Callback fired when a radio button is selected.
+- `value.value` (_any_ [optional]): 選択したラジオボタンの値。
#### 例
@@ -75,17 +95,17 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
## When to use
-- [Checkboxと Radio Buttons](https://www.nngroup.com/articles/checkboxes-vs-radio-buttons/)
+- [Checkboxと Radio Button](https://www.nngroup.com/articles/checkboxes-vs-radio-buttons/)
## アクセシビリティ
(WAI-ARIA: https://www.w3.org/TR/wai-aria-practices/#radiobutton)
-- ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。 ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。 ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。 ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。
-- ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。
+- ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。
+- ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。
```jsx
- `.
+### Direção
+
+To lay out the buttons horizontally, set the `row` prop:
+
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Controlled
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
## Botões de opção independentes
@@ -30,6 +40,16 @@ O componente `Radio` também pode ser usado de forma independente, sem o wrapper
{{"demo": "pages/components/radio-buttons/RadioButtons.js"}}
+## Tamanho
+
+Use the `size` prop or customize the font size of the svg icons to change the size of the radios.
+
+{{"demo": "pages/components/radio-buttons/SizeRadioButtons.js"}}
+
+## Cor
+
+{{"demo": "pages/components/radio-buttons/ColorRadioButtons.js"}}
+
## Posicionamento do rótulo
Você pode alterar o posicionamento do rótulo com o componente `FormControlLabel` na propriedade `labelPlacement`:
@@ -60,11 +80,11 @@ import { useRadioGroup } from '@material-ui/core/RadioGroup';
#### Retornos
-`value` (_Object_):
+`value` (_object_):
-- `value.name` (_String_ [opcional]): O nome usado para fazer referência ao valor do controle.
-- `value.onChange` (_Void_ [opcional]): Callback disparado quando um botão de opção é selecionado.
-- `value.value` (_Any_ [opcional]): Valor do botão de opção selecionado.
+- `value.name` (_string_ [opcional]): O nome usado para fazer referência ao valor do controle.
+- `value.onChange` (_func_ [optional]): Callback fired when a radio button is selected.
+- `value.value` (_any_ [opcional]): Valor do botão de opção selecionado.
#### Exemplo
@@ -82,8 +102,10 @@ import { useRadioGroup } from '@material-ui/core/RadioGroup';
- Quando um rótulo não pode ser usado, é necessário adicionar um atributo diretamente no componente de entrada. Nesse caso você pode aplicar um atributo adicional (por exemplo, `aria-label`,`aria-labelledby`, `title`) através da propriedade `inputProps`.
```jsx
-
```
diff --git a/docs/src/pages/components/radio-buttons/radio-buttons-ru.md b/docs/src/pages/components/radio-buttons/radio-buttons-ru.md
index 0203a7dd0befb5..d49101e212fa1a 100644
--- a/docs/src/pages/components/radio-buttons/radio-buttons-ru.md
+++ b/docs/src/pages/components/radio-buttons/radio-buttons-ru.md
@@ -16,13 +16,23 @@ Use [radio buttons](https://material.io/design/components/selection-controls.htm
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## RadioGroup
+## Radio group
`RadioGroup` - это полезная обертка, используемая для группировки `компонентов Radio`, она обеспечивает более простой API и управление с клавиатуры.
{{"demo": "pages/components/radio-buttons/RadioButtonsGroup.js"}}
-To lay out the buttons horizontally, set the `row` prop: ` `.
+### Direction
+
+To lay out the buttons horizontally, set the `row` prop:
+
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Controlled
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
## Standalone radio buttons
@@ -30,6 +40,16 @@ To lay out the buttons horizontally, set the `row` prop: ` `.
{{"demo": "pages/components/radio-buttons/RadioButtons.js"}}
+## Size
+
+Use the `size` prop or customize the font size of the svg icons to change the size of the radios.
+
+{{"demo": "pages/components/radio-buttons/SizeRadioButtons.js"}}
+
+## Цвет
+
+{{"demo": "pages/components/radio-buttons/ColorRadioButtons.js"}}
+
## Расположение метки
You can change the placement of the label with the `FormControlLabel` component's `labelPlacement` prop:
@@ -44,7 +64,7 @@ In general, radio buttons should have a value selected by default. If this is no
## Customized radios
-Ниже находится пример кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находится пример кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/radio-buttons/CustomizedRadios.js"}}
@@ -63,11 +83,11 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
#### Возвращает
-`value` (_Object_):
+`value` (_object_):
-- `value.name` (_String_ [optional]): The name used to reference the value of the control.
-- `value.onChange` (_Void_ [optional]): Callback fired when a radio button is selected.
-- `value.value` (_Any_ [optional]): Value of the selected radio button.
+- `value.name` (_string_ [optional]): The name used to reference the value of the control.
+- `value.onChange` (_func_ [optional]): Callback fired when a radio button is selected.
+- `value.value` (_any_ [optional]): Value of the selected radio button.
#### Пример
@@ -75,7 +95,7 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
## Бесплатно
-- [Чекбоксы. Radio Buttons (радиокнопки) ](https://www.nngroup.com/articles/checkboxes-vs-radio-buttons/)
+- [Checkboxes или Radio Buttons](https://www.nngroup.com/articles/checkboxes-vs-radio-buttons/)
## Доступность
@@ -85,7 +105,7 @@ For advanced customization use cases, a `useRadioGroup()` hook is exposed. It re
- Когда метка не может быть использована, необходимо добавить атрибут непосредственно на поле ввода. В этом случае можно применить дополнительный атрибут (например, `aria-label`, `aria-labelledby`, `title`) через свойство `inputProps`.
```jsx
- `。
+### 方向
+
+To lay out the buttons horizontally, set the `row` prop:
+
+{{"demo": "pages/components/radio-buttons/RowRadioButtonsGroup.js"}}
+
+### Controlled
+
+You can control the radio with the `value` and `onChange` props:
+
+{{"demo": "pages/components/radio-buttons/ControlledRadioButtonsGroup.js"}}
## Standalone radio buttons 独立的单选框按钮
@@ -30,6 +40,16 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#radiobutton'
{{"demo": "pages/components/radio-buttons/RadioButtons.js"}}
+## Size 大小
+
+Use the `size` prop or customize the font size of the svg icons to change the size of the radios.
+
+{{"demo": "pages/components/radio-buttons/SizeRadioButtons.js"}}
+
+## Color 颜色
+
+{{"demo": "pages/components/radio-buttons/ColorRadioButtons.js"}}
+
## 标签放置
你可以用 `FormControlLabel` 组件的 `labelPlacement` 属性来改变标签的位置。
@@ -60,11 +80,11 @@ import { useRadioGroup } from '@material-ui/core/RadioGroup';
#### 返回结果
-`value` (_Object_):
+`value` (_object_):
-- `value.name` (_String_ [optional]):用于引用控件值的名称。
-- `value.onChange` (_Void_ [optional]):当单选框被选中时会触发的回调。
-- `value.value` (_Any_ [optional]):所被选定的单选框的值。
+- `value.name` (_string_ [optional]):用于引用控件值的名称。
+- `value.onChange` (_func_ [optional]): Callback fired when a radio button is selected.
+- `value.value` (_any_ [optional]):所被选定的单选框的值。
#### 示例
@@ -82,7 +102,7 @@ import { useRadioGroup } from '@material-ui/core/RadioGroup';
- 如果无法使用标签,您则必须在输入组件中直接添加属性。 在这种情况下,您可以经由 `inputProps` 属性,来附着一些额外的属性(例如 `arial-label`,`aria-labelledby`,`title`)。
```jsx
-Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
+Bewertungen geben Einblicke in die Meinungen und Erfahrungen anderer und können es dem Benutzer ermöglichen, eine eigene Bewertung abzugeben.
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## Basic rating
+## Grundbewertung
{{"demo": "pages/components/rating/BasicRating.js"}}
-## Rating precision
+## Bewertungspräzision
The rating can display any float number with the `value` prop. Use the `precision` prop to define the minimum increment value change allowed.
@@ -23,22 +23,28 @@ The rating can display any float number with the `value` prop. Use the `precisio
## Hover feedback
-You can display a label on hover to help the user pick the correct rating value. Die Demo verwendet die `onChangeActive` Prop.
+Sie können ein Etikett mit dem Mauszeiger anzeigen, um dem Benutzer bei der Auswahl des richtigen Bewertungswerts zu helfen. Die Demo verwendet die `onChangeActive` Prop.
{{"demo": "pages/components/rating/HoverRating.js"}}
## Größen
-For larger or smaller ratings use the `size` prop.
+Für Größeren oder kleinerem Bewertungen benutze `size` prop.
{{"demo": "pages/components/rating/RatingSize.js"}}
-## Customized rating
+## Benutzerdefinierte Bewertung
Hier einige Beispiele zum Anpassen der Komponente. Mehr dazu erfahren Sie auf der [Überschreibungsdokumentationsseite](/customization/how-to-customize/).
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## Radio group
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+{{"demo": "pages/components/rating/RadioGroupRating.js"}}
+
## Barrierefreiheit
([WAI tutorial](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
diff --git a/docs/src/pages/components/rating/rating-es.md b/docs/src/pages/components/rating/rating-es.md
index e5a7f93db5eb80..2c180c2000af48 100644
--- a/docs/src/pages/components/rating/rating-es.md
+++ b/docs/src/pages/components/rating/rating-es.md
@@ -39,6 +39,12 @@ Here are some examples of customizing the component. Puedes aprender más sobre
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## Radio group
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+{{"demo": "pages/components/rating/RadioGroupRating.js"}}
+
## Accesibilidad
([tutorial WAI](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
diff --git a/docs/src/pages/components/rating/rating-fr.md b/docs/src/pages/components/rating/rating-fr.md
index 8075a681041dde..a50c063ce18d69 100644
--- a/docs/src/pages/components/rating/rating-fr.md
+++ b/docs/src/pages/components/rating/rating-fr.md
@@ -1,5 +1,5 @@
---
-title: React Rating component
+title: Composant d'évaluation de réaction
components: Rating (Notation)
githubLabel: 'component: Rating'
waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
@@ -7,15 +7,15 @@ waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
# Rating (Notation)
-Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
+Les évaluations donnent un aperçu des opinions et des expériences des autres et peuvent permettre à l'utilisateur de soumettre sa propre évaluation.
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## Basic rating
+## Évaluation de base
{{"demo": "pages/components/rating/BasicRating.js"}}
-## Rating precision
+## Précision de notation
The rating can display any float number with the `value` prop. Use the `precision` prop to define the minimum increment value change allowed.
@@ -23,40 +23,46 @@ The rating can display any float number with the `value` prop. Use the `precisio
## Hover feedback
-You can display a label on hover to help the user pick the correct rating value. The demo uses the `onChangeActive` prop.
+Vous pouvez afficher une étiquette au survol pour aider l'utilisateur à choisir la bonne valeur d'évaluation. The demo uses the `onChangeActive` prop.
{{"demo": "pages/components/rating/HoverRating.js"}}
## Tailles
-For larger or smaller ratings use the `size` prop.
+Pour des notes plus grandes ou plus petites, utilisez la propriété `size`.
{{"demo": "pages/components/rating/RatingSize.js"}}
-## Customized rating
+## Évaluation personnalisée
Here are some examples of customizing the component. Vous pouvez en savoir plus dans la [page de documentation des overrides](/customization/how-to-customize/).
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## RadioGroup
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+L'accessibilité de ce composant repose sur les points suivants :
+
## Accessibilité
-([WAI tutorial](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
+([Tutoriel WAI](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
L'accessibilité de ce composant repose sur les points suivants :
-- A radio group with its fields visually hidden. It contains six radio buttons, one for each star, and another for 0 stars that is checked by default. Be sure to provide a value for the `name` prop that is unique to the parent form.
-- Labels for the radio buttons containing actual text (“1 Star”, “2 Stars”, …). Be sure to provide a suitable function to the `getLabelText` prop when the page is in a language other than English. You can use the [included locales](https://material-ui.com/guides/localization/), or provide your own.
-- A visually distinct appearance for the rating icons. By default, the rating component uses both a difference of color and shape (filled and empty icons) to indicate the value. In the event that you are using color as the only means to indicate the value, the information should also be also displayed as text, as in this demo. This is important to match [success Criterion 1.4.1](https://www.w3.org/TR/WCAG21/#use-of-color) of WCAG2.1.
+- Un groupe radio avec ses champs visuellement cachés. Il contient six boutons radio, un pour chaque étoile et un autre pour 0 étoile coché par défaut. Assurez-vous de fournir une valeur pour la propriété `name` qui est unique au formulaire parent.
+- Libellés des boutons radio contenant du texte réel (« 1 étoile », « 2 étoiles », …). Assurez-vous de fournir une fonction appropriée à la prop `getLabelText` lorsque la page est dans une langue autre que l'anglais. Vous pouvez utiliser les [locales incluses](https://material-ui.com/guides/localization/) ou fournir les vôtres.
+- Une apparence visuellement distincte pour les icônes de notation. Par défaut, le composant d'évaluation utilise à la fois une différence de couleur et de forme (icônes pleines et vides) pour indiquer la valeur. Dans le cas où vous utilisez la couleur comme seul moyen d'indiquer la valeur, les informations doivent également être affichées sous forme de texte, comme dans cette démo. Ceci est important pour correspondre au [critère de réussite 1.4.1](https://www.w3.org/TR/WCAG21/#use-of-color) des WCAG2.1.
{{"demo": "pages/components/rating/TextRating.js"}}
### ARIA
-The read only rating has a role of "img", and an aria-label that describes the displayed rating.
+La note en lecture seule a un rôle de "img", et une aria-label qui décrit la note affichée.
### Clavier
-Because the rating component uses radio buttons, keyboard interaction follows the native browser behavior. Tab will focus the current rating, and cursor keys control the selected rating.
+Étant donné que le composant d'évaluation utilise des boutons radio, l'interaction du clavier suit le comportement natif du navigateur. L'onglet se concentrera sur la note actuelle et les touches de curseur contrôlent la note sélectionnée.
-The read only rating is not focusable.
+La note en lecture seule n'est pas focalisable.
diff --git a/docs/src/pages/components/rating/rating-ja.md b/docs/src/pages/components/rating/rating-ja.md
index 92d5173a9a0870..ff961d8cbc4f9e 100644
--- a/docs/src/pages/components/rating/rating-ja.md
+++ b/docs/src/pages/components/rating/rating-ja.md
@@ -1,5 +1,5 @@
---
-title: React Rating component
+title: Reactレーティングコンポーネント
components: レート
githubLabel: 'component: Rating'
waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
@@ -7,11 +7,11 @@ waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
# レート
-Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
+レーティングコンポーネントは、ユーザーの意見や評価を反映するためのコンポーネントです。
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## Basic rating
+## 基本のレーティングコンポーネント
{{"demo": "pages/components/rating/BasicRating.js"}}
@@ -35,10 +35,16 @@ For larger or smaller ratings use the `size` prop.
## Customized rating
-コンポーネントのカスタマイズの例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズの例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## Radio group
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+{{"demo": "pages/components/rating/RadioGroupRating.js"}}
+
## アクセシビリティ
([WAI tutorial](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
diff --git a/docs/src/pages/components/rating/rating-pt.md b/docs/src/pages/components/rating/rating-pt.md
index 9e91c552fdd969..d03c6dc561bbe1 100644
--- a/docs/src/pages/components/rating/rating-pt.md
+++ b/docs/src/pages/components/rating/rating-pt.md
@@ -7,7 +7,7 @@ waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
# Avaliação
-Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
+Avaliações fornecem informações sobre as opiniões e experiências dos outros e permitem que o usuário envie sua própria avaliação.
{{"component": "modules/components/ComponentLinkHeader.js"}}
@@ -39,6 +39,12 @@ Aqui estão alguns exemplos de customização do componente. Você pode aprender
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## Radio group
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+{{"demo": "pages/components/rating/RadioGroupRating.js"}}
+
## Acessibilidade
([WAI tutorial](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
diff --git a/docs/src/pages/components/rating/rating-ru.md b/docs/src/pages/components/rating/rating-ru.md
index 407f811cc786af..587fc6a942bda1 100644
--- a/docs/src/pages/components/rating/rating-ru.md
+++ b/docs/src/pages/components/rating/rating-ru.md
@@ -7,15 +7,15 @@ waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
# Rating
-Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
+Рейтинги дают представление о мнении и опыте других и позволяют пользователю дать собственную оценку.
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## Basic rating
+## Базовый рейтинг
{{"demo": "pages/components/rating/BasicRating.js"}}
-## Rating precision
+## Точность рейтинга
The rating can display any float number with the `value` prop. Use the `precision` prop to define the minimum increment value change allowed.
@@ -23,29 +23,35 @@ The rating can display any float number with the `value` prop. Use the `precisio
## Hover feedback
-You can display a label on hover to help the user pick the correct rating value. The demo uses the `onChangeActive` prop.
+Вы можете показать lable при наведении курсора, чтобы помочь пользователю выбрать правильное значение рейтинга. The demo uses the `onChangeActive` prop.
{{"demo": "pages/components/rating/HoverRating.js"}}
## Размеры
-For larger or smaller ratings use the `size` prop.
+Для больших или меньших рейтингов используйте prop `size`.
{{"demo": "pages/components/rating/RatingSize.js"}}
-## Customized rating
+## Настраиваемые кнопки
-Ниже находятся примеры кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находятся примеры кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## Radio group
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+{{"demo": "pages/components/rating/RadioGroupRating.js"}}
+
## Доступность
-([WAI tutorial](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
+([WAI Учебник](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
Доступность этого компонента зависит от:
-- A radio group with its fields visually hidden. It contains six radio buttons, one for each star, and another for 0 stars that is checked by default. Be sure to provide a value for the `name` prop that is unique to the parent form.
+- Скрыта ли визуально группа radio-кнопок. Rating содержит шесть radio-кнопок, по одному для каждой звёздочки, а ещё одна для 0 звёзд, которые проверяются по умолчанию. Не забудьте предоставить значение для prop `name`, который уникален для родительской формы.
- Labels for the radio buttons containing actual text (“1 Star”, “2 Stars”, …). Be sure to provide a suitable function to the `getLabelText` prop when the page is in a language other than English. You can use the [included locales](https://material-ui.com/guides/localization/), or provide your own.
- A visually distinct appearance for the rating icons. By default, the rating component uses both a difference of color and shape (filled and empty icons) to indicate the value. In the event that you are using color as the only means to indicate the value, the information should also be also displayed as text, as in this demo. This is important to match [success Criterion 1.4.1](https://www.w3.org/TR/WCAG21/#use-of-color) of WCAG2.1.
diff --git a/docs/src/pages/components/rating/rating-zh.md b/docs/src/pages/components/rating/rating-zh.md
index b41109d7ba4b82..0cc52706bce61c 100644
--- a/docs/src/pages/components/rating/rating-zh.md
+++ b/docs/src/pages/components/rating/rating-zh.md
@@ -7,7 +7,8 @@ waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
# Rating 评分
-Ratings provide insight regarding others' opinions and experiences, and can allow the user to submit a rating of their own.
+评分组件可以让用户深入了解他人的意见和经验,也可以让用户提交自己的评价。
+
{{"component": "modules/components/ComponentLinkHeader.js"}}
@@ -39,6 +40,12 @@ waiAria: 'https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating'
{{"demo": "pages/components/rating/CustomizedRating.js"}}
+## Radio group
+
+The rating is implemented with a radio group, set `highlightSelectedOnly` to restore the natural behavior.
+
+{{"demo": "pages/components/rating/RadioGroupRating.js"}}
+
## 无障碍设计
([WAI 教程](https://www.w3.org/WAI/tutorials/forms/custom-controls/#a-star-rating))
diff --git a/docs/src/pages/components/selects/selects-de.md b/docs/src/pages/components/selects/selects-de.md
index 3bf3f034485572..3d052828ecdf55 100644
--- a/docs/src/pages/components/selects/selects-de.md
+++ b/docs/src/pages/components/selects/selects-de.md
@@ -24,9 +24,9 @@ If you are looking for more advanced features, like combobox, multiselect, autoc
## Eigenschaften
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [OutlinedInput](/api/outlined-input/), [Input](/api/input/), or [FilledInput](/api/filled-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
-### Filled and outlined variants
+### Filled and standard variants
{{"demo": "pages/components/selects/NativeSelects.js"}}
@@ -56,7 +56,7 @@ Die `TextField` Wrapper-Komponente ist ein vollständiges Formularsteuerelement,
Hier einige Beispiele zum Anpassen der Komponente. Mehr dazu erfahren Sie auf der [Überschreibungsdokumentationsseite](/customization/how-to-customize/).
-Der erste Schritt besteht darin, die `InputBase` Komponente zu formatieren. Anschließend können Sie es entweder direkt als Textfeld verwenden oder der Eigenschaft select `input` zuweisen, um ein Feld `select` zu erhalten.
+Der erste Schritt besteht darin, die `InputBase` Komponente zu formatieren. Anschließend können Sie es entweder direkt als Textfeld verwenden oder der Eigenschaft select `input` zuweisen, um ein Feld `select` zu erhalten. Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
@@ -94,7 +94,7 @@ Alternatively a `TextField` with an `id` and `label` creates the proper markup a
## Gruppierung
-Während es von der Material Design-Spezifikation nicht empfohlen wird, können Sie eine Auswahl innerhalb eines Dialogfelds verwenden.
+While it's discouraged by the Material Design guidelines, you can use a select inside a dialog.
{{"demo": "pages/components/selects/DialogSelect.js"}}
diff --git a/docs/src/pages/components/selects/selects-es.md b/docs/src/pages/components/selects/selects-es.md
index 895813767e3939..a8e72e823fd0b5 100644
--- a/docs/src/pages/components/selects/selects-es.md
+++ b/docs/src/pages/components/selects/selects-es.md
@@ -24,9 +24,9 @@ If you are looking for more advanced features, like combobox, multiselect, autoc
## Props
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [OutlinedInput](/api/outlined-input/), [Input](/api/input/), or [FilledInput](/api/filled-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
-### Filled and outlined variants
+### Filled and standard variants
{{"demo": "pages/components/selects/NativeSelects.js"}}
@@ -56,7 +56,7 @@ El componente `TextField` es un control de formulario completo, incluyendo una e
Here are some examples of customizing the component. Puedes aprender más sobre esto en la [sección Personalizando Componentes de la documentación](/customization/how-to-customize/).
-The first step is to style the `InputBase` component. El componente `TextField` es un control de formulario completo, incluyendo una etiqueta, el campo de texto y texto de ayuda.
+The first step is to style the `InputBase` component. El componente `TextField` es un control de formulario completo, incluyendo una etiqueta, el campo de texto y texto de ayuda. Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
@@ -94,7 +94,7 @@ Alternatively a `TextField` with an `id` and `label` creates the proper markup a
## With a dialog
-While it's discouraged by the Material Design specification, you can use a select inside a dialog.
+While it's discouraged by the Material Design guidelines, you can use a select inside a dialog.
{{"demo": "pages/components/selects/DialogSelect.js"}}
diff --git a/docs/src/pages/components/selects/selects-fr.md b/docs/src/pages/components/selects/selects-fr.md
index c1dd56d5b5fdd0..168c9c82382f17 100644
--- a/docs/src/pages/components/selects/selects-fr.md
+++ b/docs/src/pages/components/selects/selects-fr.md
@@ -1,5 +1,5 @@
---
-title: React Select component
+title: Composant React Select
components: Select, NativeSelect
githubLabel: 'component: Select'
---
@@ -24,25 +24,25 @@ If you are looking for more advanced features, like combobox, multiselect, autoc
## Props
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+Le composant Select est implémenté en tant qu'élément ` ` personnalisé de la [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. Il partage les mêmes styles et bon nombre des mêmes accessoires. Reportez-vous à la page API du composant respectif pour plus de détails.
### Filled and outlined variants
{{"demo": "pages/components/selects/NativeSelects.js"}}
-### Labels and helper text
+### Étiquettes et texte d'aide
{{"demo": "pages/components/selects/SelectLabels.js"}}
-### Auto width
+### Largeur automatique
{{"demo": "pages/components/selects/SelectAutoWidth.js"}}
-### Other props
+### D'autres accessoires
{{"demo": "pages/components/selects/SelectOtherProps.js"}}
-## Text Fields (Champs de texte)
+## Sélection native
As the user experience can be improved on mobile using the native select of the platform, we allow such pattern.
@@ -56,15 +56,15 @@ Le composant d'encapsulation `TextField` est un contrôle de formulaire complet
Here are some examples of customizing the component. Vous pouvez en savoir plus dans la [page de documentation des overrides](/customization/how-to-customize/).
-The first step is to style the `InputBase` component. Le composant d'encapsulation `TextField` est un contrôle de formulaire complet comprenant une étiquette, une entrée et un texte d'aide.
+The first step is to style the `InputBase` component. Une fois qu'il est stylisé, vous pouvez soit l'utiliser directement comme champ de texte, soit le fournir à la propriété select `input` pour avoir un champ `select`. Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
🎨 Si vous cherchez de l'inspiration, vous pouvez consulter les [exemples de personnalisation de MUI Treasury](https://mui-treasury.com/styles/select).
-## Controlled Open Select
+## Sélection multiple
-The `Select` component can handle multiple selections. The `Select` component can handle multiple selections.
+The `Select` component can handle multiple selections. Il est activé avec la prop `multiple`.
Like with the single selection, you can pull out the new value by accessing `event.target.value` in the `onChange` callback. It's always an array.
@@ -72,7 +72,7 @@ Like with the single selection, you can pull out the new value by accessing `eve
{{"demo": "pages/components/selects/MultipleSelect.js"}}
-### Checkmarks
+### Coches
{{"demo": "pages/components/selects/MultipleSelectCheckmarks.js"}}
@@ -80,19 +80,19 @@ Like with the single selection, you can pull out the new value by accessing `eve
Alternatively a `TextField` with an `id` and `label` creates the proper markup and ids for you:
-### Placeholder
+### Espace réservé
{{"demo": "pages/components/selects/MultipleSelectPlaceholder.js"}}
-### Native
+### Originaire de
{{"demo": "pages/components/selects/MultipleSelectNative.js"}}
-## Avec un dialogue
+## Sélection ouverte contrôlée
{{"demo": "pages/components/selects/ControlledOpenSelect.js"}}
-## With a dialog
+## Avec un dialogue
Bien que cela soit découragé par la spécification Material Design, vous pouvez utiliser une sélection dans une boîte de dialogue.
diff --git a/docs/src/pages/components/selects/selects-ja.md b/docs/src/pages/components/selects/selects-ja.md
index 2eb9e3bf49cb48..d75bd1bb606780 100644
--- a/docs/src/pages/components/selects/selects-ja.md
+++ b/docs/src/pages/components/selects/selects-ja.md
@@ -20,13 +20,13 @@ githubLabel: 'component: Select'
選択コンポーネントはネイティブの `` 要素に入れ替えられます。
-コンボボックス、複数選択、自動補完、非同期、作成可能のサポートといったさらに高度な機能をお探しなら、[`Autocomplete`コンポーネント](/components/autocomplete/)を参照してください。 It's meant to be an improved version of the "react-select" and "downshift" packages. "react-select"と"downshift"というパッケージの改良版であることを意識しています。
+コンボボックス、複数選択、自動補完、非同期、作成可能のサポートといったさらに高度な機能をお探しなら、[`Autocomplete`コンポーネント](/components/autocomplete/)を参照してください。 "react-select"と"downshift"というパッケージの改良版であることを意識しています。
## Props
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+Select コンポーネントは [InputBase](/api/input-base/) のカスタム ` `要素として実装されています。 It extends the [text field components](/components/text-fields) sub-components, either the [OutlinedInput](/api/outlined-input/), [Input](/api/input/), or [FilledInput](/api/filled-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
-### Filled and outlined variants
+### Filled and standard variants
{{"demo": "pages/components/selects/NativeSelects.js"}}
@@ -56,9 +56,9 @@ The Select component is implemented as a custom ` ` element of the [InputB
## カスタマイズされた選択
-コンポーネントのカスタマイズの例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズの例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
-To properly label your `Select` input you need an extra element with an `id` that contains a label. スタイルを設定したら、テキストフィールドとして直接使用するか、select `input` プロパティに提供して、 `select` フィールドを作成できます。
+最初のステップは、 `InputBase` コンポーネントのスタイル設定です。 スタイルを設定したら、テキストフィールドとして直接使用するか、select `input` プロパティに提供して、 `select` フィールドを作成できます。 Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
@@ -68,7 +68,7 @@ To properly label your `Select` input you need an extra element with an `id` tha
## 制御開選択
-To properly label your `Select` input you need an extra element with an `id` that contains a label. To properly label your `Select` input you need an extra element with an `id` that contains a label.
+`Select` コンポーネントは、複数の選択を処理できます。 To properly label your `Select` input you need an extra element with an `id` that contains a label.
単一選択の場合と同様に、 `onChange` コールバックで `event.target.value` にアクセスすることにより、新しい値を引き出すことができます。 常に配列です。 常に配列です。 常に配列です。 常に配列です。 常に配列です。 常に配列です。
@@ -112,7 +112,7 @@ Alternatively a `TextField` with an `id` and `label` creates the proper markup a
## With a dialog
-Material Designの仕様では推奨されていませんが、ダイアログ内でselectを使用できます。
+While it's discouraged by the Material Design guidelines, you can use a select inside a dialog.
{{"demo": "pages/components/selects/DialogSelect.js"}}
diff --git a/docs/src/pages/components/selects/selects-pt.md b/docs/src/pages/components/selects/selects-pt.md
index d1ff9246028709..dd331fec8aba73 100644
--- a/docs/src/pages/components/selects/selects-pt.md
+++ b/docs/src/pages/components/selects/selects-pt.md
@@ -24,9 +24,9 @@ Se você estiver procurando por recursos mais avançados, como combobox, seleç
## Propriedades
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+O componente seleção é implementado como um elemento ` ` personalizado do [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [OutlinedInput](/api/outlined-input/), [Input](/api/input/), or [FilledInput](/api/filled-input/), depending on the variant selected. Ele compartilha os mesmos estilos e muitas das mesmas propriedades. Consulte a página da API do respectivo componente para obter detalhes.
-### Variantes filled e outlined
+### Filled and standard variants
{{"demo": "pages/components/selects/SelectVariants.js"}}
@@ -56,7 +56,7 @@ O componente wrapper `TextField` é um controle de formulário completo, incluin
Aqui estão alguns exemplos de customização do componente. Você pode aprender mais sobre isso na [página de documentação de sobrescritas](/customization/how-to-customize/).
-O primeiro passo é estilizar o componente `InputBase`. Uma vez estilizado, você pode usá-lo diretamente como um campo de texto ou fornecê-lo à propriedade `input` da seleção para ter um campo `select`.
+O primeiro passo é estilizar o componente `InputBase`. Uma vez estilizado, você pode usá-lo diretamente como um campo de texto ou fornecê-lo à propriedade `input` da seleção para ter um campo `select`. Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
@@ -94,7 +94,7 @@ Como na seleção única, você pode extrair o novo valor acessando `event.targe
## Com um diálogo
-Embora não seja recomendado pela especificação do Material Design, você pode usar uma seleção dentro de um diálogo.
+While it's discouraged by the Material Design guidelines, you can use a select inside a dialog.
{{"demo": "pages/components/selects/DialogSelect.js"}}
diff --git a/docs/src/pages/components/selects/selects-ru.md b/docs/src/pages/components/selects/selects-ru.md
index f5e148ca8cd9c9..1118c4c0659d55 100644
--- a/docs/src/pages/components/selects/selects-ru.md
+++ b/docs/src/pages/components/selects/selects-ru.md
@@ -24,9 +24,9 @@ githubLabel: 'component: Select'
## Props
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [OutlinedInput](/api/outlined-input/), [Input](/api/input/), or [FilledInput](/api/filled-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
-### Filled and outlined variants
+### Filled and standard variants
{{"demo": "pages/components/selects/SelectVariants.js"}}
@@ -54,9 +54,9 @@ The Select component is implemented as a custom ` ` element of the [InputB
## Кастомизированные списки
-Ниже находятся примеры кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находятся примеры кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
-Чтобы правильно подписать ваш элемент `Select`, вам потребуется дополнительный элемент со свойством `id`. После стилизации, вы можете использовать компонент напрямую как текстовое поле, либо передать его в компонент `Select`, свойством `input`.
+Чтобы правильно подписать ваш элемент `Select`, вам потребуется дополнительный элемент со свойством `id`. После стилизации, вы можете использовать компонент напрямую как текстовое поле, либо передать его в компонент `Select`, свойством `input`. Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
@@ -94,7 +94,7 @@ The Select component is implemented as a custom ` ` element of the [InputB
## Группировка
-Хоть это и не приветствуется спецификацией Material Design, вы можете использовать список внутри диалогового окна.
+While it's discouraged by the Material Design guidelines, you can use a select inside a dialog.
{{"demo": "pages/components/selects/DialogSelect.js"}}
diff --git a/docs/src/pages/components/selects/selects-zh.md b/docs/src/pages/components/selects/selects-zh.md
index cbb34d729fe584..c92d24f1a9296b 100644
--- a/docs/src/pages/components/selects/selects-zh.md
+++ b/docs/src/pages/components/selects/selects-zh.md
@@ -10,7 +10,7 @@ githubLabel: 'component: Select'
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## 简单的选择器
+## 基础的选择器
我们通常将菜单(Menus)放置在其所点击的元素上,这样的话能够确保当前选定的菜单项显示在点击的元素之上。
@@ -24,9 +24,9 @@ Select 组件的设计原理是和一个原生的 `` 元素能够互相
## 属性
-The Select component is implemented as a custom ` ` element of the [InputBase](/api/input-base/). It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details. It extends the [text field components](/components/text-fields) sub-components, either the [Input](/api/input/), [FilledInput](/api/filled-input/), or [OutlinedInput](/api/outlined-input/), depending on the variant selected. It shares the same styles and many of the same props. Refer to the respective component's API page for details.
+选择器组件是通过自定义 [InputBase](/api/input-base/) 的 ` ` 元素来实现的。 It extends the [text field components](/components/text-fields) sub-components, either the [OutlinedInput](/api/outlined-input/), [Input](/api/input/), or [FilledInput](/api/filled-input/), depending on the variant selected. 它有着相同的样式和许多相同的属性。 详情请参阅相应组件的 API 文档。
-### 填充(Filled)和描边(outlined)变量
+### Filled and standard variants
{{"demo": "pages/components/selects/SelectVariants.js"}}
@@ -56,7 +56,7 @@ The Select component is implemented as a custom ` ` element of the [InputB
你可以参考以下一些例子来自定义组件。 您可以在 [重写文档页面](/customization/how-to-customize/) 中了解更多有关此内容的信息。
-首先,需要设置 `InputBase` 组件的样式。 一旦设置好了样式,您就可以直接将其用作文本字段,也可以将其作为一个 `select` 字段提供给 select 组件的 `input` 属性。
+首先,需要设置 `InputBase` 组件的样式。 一旦设置好了样式,您就可以直接将其用作文本字段,也可以将其作为一个 `select` 字段提供给 select 组件的 `input` 属性。 Notice that the `"standard"` variant is easier to customize, since it does not wrap the contents in a `fieldset`/`legend` markup.
{{"demo": "pages/components/selects/CustomizedSelects.js"}}
@@ -94,7 +94,7 @@ The Select component is implemented as a custom ` ` element of the [InputB
## 与对话框组件(Dialog)一起使用
-虽然 Material Design 的规范不鼓励这样做,但您还是可以在对话框组件中使用选择器。
+While it's discouraged by the Material Design guidelines, you can use a select inside a dialog.
{{"demo": "pages/components/selects/DialogSelect.js"}}
diff --git a/docs/src/pages/components/skeleton/skeleton-de.md b/docs/src/pages/components/skeleton/skeleton-de.md
index 6b3e69df510f42..3b34070b4ec382 100644
--- a/docs/src/pages/components/skeleton/skeleton-de.md
+++ b/docs/src/pages/components/skeleton/skeleton-de.md
@@ -74,6 +74,12 @@ loading ? (
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## Farbe (Color)
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## Barrierefreiheit
Skeleton screens provide an alternative to the traditional spinner method. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
diff --git a/docs/src/pages/components/skeleton/skeleton-es.md b/docs/src/pages/components/skeleton/skeleton-es.md
index 17eab2f5abda04..69f26731017fd7 100644
--- a/docs/src/pages/components/skeleton/skeleton-es.md
+++ b/docs/src/pages/components/skeleton/skeleton-es.md
@@ -74,6 +74,12 @@ loading ? (
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## Color
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## Accesibilidad
Skeleton screens provide an alternative to the traditional spinner method. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
diff --git a/docs/src/pages/components/skeleton/skeleton-fr.md b/docs/src/pages/components/skeleton/skeleton-fr.md
index 976c6e201a75e8..9c3f43c46f3f4d 100644
--- a/docs/src/pages/components/skeleton/skeleton-fr.md
+++ b/docs/src/pages/components/skeleton/skeleton-fr.md
@@ -1,5 +1,5 @@
---
-title: React Skeleton component
+title: Composant React Skeleton
components: Skeleton (Squelette)
githubLabel: 'component: Skeleton'
---
@@ -8,13 +8,13 @@ githubLabel: 'component: Skeleton'
Display a placeholder preview of your content before the data gets loaded to reduce load-time frustration.
-The data for your components might not be immediately available. The data for your components might not be immediately available. It feels like things are happening immediately, then the information is incrementally displayed on the screen (Cf. [Avoid The Spinner](https://www.lukew.com/ff/entry.asp?1797)).
+The data for your components might not be immediately available. Vous pouvez améliorer la réactivité perçue de la page en utilisant des Skeletons. It feels like things are happening immediately, then the information is incrementally displayed on the screen (Cf. [Avoid The Spinner](https://www.lukew.com/ff/entry.asp?1797)).
{{"component": "modules/components/ComponentLinkHeader.js"}}
## Utilisation
-The component is designed to be used **directly in your components**. Par exemple:
+Le composant est conçu pour être utilisé **directement dans vos composants**. Par exemple:
```jsx
{item ? (
@@ -32,7 +32,7 @@ The component supports 3 shape variants.
## Animations
-By default, the skeleton pulsate, but you can change the animation for a wave or disable it entirely.
+Par défaut, c'est le Skeleton Pulsates, mais vous pouvez changer l'animation en une vague ou la désactiver entièrement.
{{"demo": "pages/components/skeleton/Animations.js"}}
@@ -68,16 +68,22 @@ loading
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## Couleur
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## Accessibilité
-Skeleton screens provide an alternative to the traditional spinner method. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
+Les écrans de Skeleton offrent une alternative à la méthode traditionnelle. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
The background color of the skeleton uses the least amount of luminance to be visible in good conditions (good ambient light, good screen, no visual impairments).
### ARIA
-None.
+Aucune.
### Clavier
-The skeleton is not focusable.
+Le Skeleton n'est pas concentrable.
diff --git a/docs/src/pages/components/skeleton/skeleton-ja.md b/docs/src/pages/components/skeleton/skeleton-ja.md
index dfe0ac4ad44dd8..f3cb66ff056f17 100644
--- a/docs/src/pages/components/skeleton/skeleton-ja.md
+++ b/docs/src/pages/components/skeleton/skeleton-ja.md
@@ -1,5 +1,5 @@
---
-title: React Skeleton component
+title: React Skeleton コンポーネント
components: Skeleton
githubLabel: 'component: Skeleton'
---
@@ -8,7 +8,7 @@ githubLabel: 'component: Skeleton'
データがロードされる前にコンテンツのプレースホルダープレビューを表示して、ロード時のフラストレーションを軽減します。
-コンポーネントのデータがすぐに利用できない場合があります。 コンポーネントのデータがすぐに利用できない場合があります。 すぐに物事が発生しているように感じ、情報が画面に徐々に表示されます(Cf. [Avoid The Spinner](https://www.lukew.com/ff/entry.asp?1797)).
+コンポーネントのデータがすぐに利用できない場合があります。 スケルトンを使用することで、ページの認知応答性を向上させることができます。 すぐに物事が発生しているように感じ、情報が画面に徐々に表示されます(Cf. [Avoid The Spinner](https://www.lukew.com/ff/entry.asp?1797)).
{{"component": "modules/components/ComponentLinkHeader.js"}}
@@ -32,7 +32,7 @@ The component supports 3 shape variants.
## Animations
-By default, the skeleton pulsate, but you can change the animation for a wave or disable it entirely.
+デフォルトでは、スケルトンパルサーが表示されますが、アニメーションを波に変更したり、完全に無効にしたりできます。
{{"demo": "pages/components/skeleton/Animations.js"}}
@@ -68,9 +68,15 @@ loading
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## カラー
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## アクセシビリティ
-Skeleton screens provide an alternative to the traditional spinner method. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
+スケルトンスクリーンは、従来のスピナー方法に代わるものです。 Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
The background color of the skeleton uses the least amount of luminance to be visible in good conditions (good ambient light, good screen, no visual impairments).
@@ -80,4 +86,4 @@ None.
### Keyboard
-The skeleton is not focusable.
+スケルトンはフォーカス可能ではありません。
diff --git a/docs/src/pages/components/skeleton/skeleton-pt.md b/docs/src/pages/components/skeleton/skeleton-pt.md
index 2ed0e4952b3e6d..2a23f635f883eb 100644
--- a/docs/src/pages/components/skeleton/skeleton-pt.md
+++ b/docs/src/pages/components/skeleton/skeleton-pt.md
@@ -68,6 +68,12 @@ loading
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## Cor
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## Acessibilidade
Telas com skeleton fornecem uma alternativa aos métodos tradicionais de feedback. Em vez de mostrar um resumo abstrato na tela, telas com skeleton criam uma expectativa do que está por vir, reduzindo a sensação cognitiva do processo de carregamento.
diff --git a/docs/src/pages/components/skeleton/skeleton-ru.md b/docs/src/pages/components/skeleton/skeleton-ru.md
index 80e4ac551219c3..6696e032a5b029 100644
--- a/docs/src/pages/components/skeleton/skeleton-ru.md
+++ b/docs/src/pages/components/skeleton/skeleton-ru.md
@@ -68,6 +68,12 @@ loading
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## Цвет
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## Доступность
Skeleton screens provide an alternative to the traditional spinner method. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
diff --git a/docs/src/pages/components/skeleton/skeleton-zh.md b/docs/src/pages/components/skeleton/skeleton-zh.md
index 2608825538dd25..df753ce87f3179 100644
--- a/docs/src/pages/components/skeleton/skeleton-zh.md
+++ b/docs/src/pages/components/skeleton/skeleton-zh.md
@@ -79,6 +79,12 @@ loading ? (
{{"demo": "pages/components/skeleton/SkeletonChildren.js", "defaultCodeOpen": false}}
+## Color 颜色
+
+The color of the component can be customized by changing its `background-color` CSS property. This is especially useful when on a black background (as the skeleton will otherwise be invisible).
+
+{{"demo": "pages/components/skeleton/SkeletonColor.js", "bg": "inline"}}
+
## 无障碍设计
骨架屏的动画可以代替传统转圈动画的加载方式。 骨架屏不是一个抽象的小部件,而是提供一个对未来事件的预期,来减少人们的认知负荷。
diff --git a/docs/src/pages/components/slider/slider-de.md b/docs/src/pages/components/slider/slider-de.md
index 8205c5d8c4cd5a..a22ab3c05db31d 100644
--- a/docs/src/pages/components/slider/slider-de.md
+++ b/docs/src/pages/components/slider/slider-de.md
@@ -12,8 +12,6 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
[Schieberegler](https://material.io/design/components/sliders.html) spiegeln einen Wertebereich entlang einer Leiste wider, aus dem Benutzer einen einzelnen Wert auswählen können. Sie sind ideal zum Anpassen von Einstellungen wie Lautstärke, Helligkeit oder Anwenden von Bildfiltern.
-- 📦 [22 kB gzipped](/size-snapshot) (but only +8 kB when used together with other Material-UI components).
-
{{"component": "modules/components/ComponentLinkHeader.js"}}
## Kontinuierliche Schieberegler
@@ -22,11 +20,15 @@ Continuous sliders allow users to select a value along a subjective range.
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## Discrete sliders
+## Größen
+
+For smaller slider, use the prop `size="small"`.
-Discrete sliders can be adjusted to a specific value by referencing its value indicator. By order of demos:
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## Discrete sliders
-You can generate a mark for each step with `marks={true}`.
+Discrete sliders can be adjusted to a specific value by referencing its value indicator. You can generate a mark for each step with `marks={true}`.
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -60,18 +62,32 @@ The slider can be used to set the start and end of a range by supplying an array
{{"demo": "pages/components/slider/RangeSlider.js"}}
+### Minimum distance
+
+You can enforce a minimum distance between values in the `onChange` event handler. By default, when you move the pointer over a thumb while dragging another thumb, the active thumb will swap to the hovered thumb. You can disable this behavior with the `disableSwap` prop. If you want the range to shift when reaching minimum distance, you can utilize the `activeThumb` parameter in `onChange`.
+
+{{"demo": "pages/components/slider/MinimumDistanceSlider.js"}}
+
## Slider with input field
-In this example an input allows a discrete value to be set.
+In this example, an input allows a discrete value to be set.
{{"demo": "pages/components/slider/InputSlider.js"}}
+## Farbe (Color)
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## Benutzerdefinierte Auswahl
-Hier einige Beispiele zum Anpassen der Komponente. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Hier einige Beispiele zum Anpassen der Komponente. Weitere Informationen hierzu finden Sie auf der [Dokumentationsseite zu Overrides](/customization/how-to-customize/).
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### Music player
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## Vertical sliders
{{"demo": "pages/components/slider/VerticalSlider.js"}}
@@ -106,7 +122,17 @@ In the following demo, the value _x_ represents the value _2^x_. Increasing _x_
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## Unstyled slider
+## Unstyled
+
+
+
+- 📦 [5.6 kB gzipped](https://bundlephobia.com/result?p=@material-ui/unstyled@next)
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -118,3 +144,15 @@ The component handles most of the work necessary to make it accessible. Sie müs
- Each thumb has a user-friendly label (`aria-label`, `aria-labelledby` or `getAriaLabel` prop).
- Each thumb has a user-friendly text for its current value. This is not required if the value matches the semantics of the label. You can change the name with the `getAriaValueText` or `aria-valuetext` prop.
+
+## Einschränkungen
+
+### IE 11
+
+The slider's value label is not centered in IE 11. The alignement is not handled to make customizations easier with the lastest browsers. You can solve the issue with:
+
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/slider/slider-es.md b/docs/src/pages/components/slider/slider-es.md
index 818c4cb7c34e72..d64a80e9c8fa49 100644
--- a/docs/src/pages/components/slider/slider-es.md
+++ b/docs/src/pages/components/slider/slider-es.md
@@ -12,8 +12,6 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
[Sliders](https://material.io/design/components/sliders.html) reflect a range of values along a bar, from which users may select a single value. Son ideales para ajustar ajustes como volumen, brillo o aplicación de filtros de imagen.
-- 📦 [22 kB gzipped](/size-snapshot) (pero solo +8 kB cuando se usa junto con otros componentes de Material-UI).
-
{{"component": "modules/components/ComponentLinkHeader.js"}}
## Deslizadores continuos
@@ -22,11 +20,15 @@ Los deslizadores continuos permiten a los usuarios seleccionar un valor a lo lar
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## Deslizadores discretos
+## Tamaños
+
+For smaller slider, use the prop `size="small"`.
-Los deslizadores discretos pueden ser ajustados a un valor específico haciendo referencia a su indicador de valor. Por orden de demos:
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## Deslizadores discretos
-Puedes generar una marca para cada paso con `marks={true}`.
+Los deslizadores discretos pueden ser ajustados a un valor específico haciendo referencia a su indicador de valor. Puedes generar una marca para cada paso con `marks={true}`.
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -60,18 +62,32 @@ The slider can be used to set the start and end of a range by supplying an array
{{"demo": "pages/components/slider/RangeSlider.js"}}
+### Minimum distance
+
+You can enforce a minimum distance between values in the `onChange` event handler. By default, when you move the pointer over a thumb while dragging another thumb, the active thumb will swap to the hovered thumb. You can disable this behavior with the `disableSwap` prop. If you want the range to shift when reaching minimum distance, you can utilize the `activeThumb` parameter in `onChange`.
+
+{{"demo": "pages/components/slider/MinimumDistanceSlider.js"}}
+
## Deslizador con campo de entrada
-In this example an input allows a discrete value to be set.
+In this example, an input allows a discrete value to be set.
{{"demo": "pages/components/slider/InputSlider.js"}}
+## Color
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## Deslizadores personalizados
Here are some examples of customizing the component. Puedes aprender más sobre esto en la [sección Personalizando Componentes de la documentación](/customization/how-to-customize/).
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### Music player
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## Deslizadores verticales
{{"demo": "pages/components/slider/VerticalSlider.js"}}
@@ -106,7 +122,17 @@ In the following demo, the value _x_ represents the value _2^x_. Increasing _x_
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## Slider sin estilo
+## Unstyled
+
+
+
+- 📦 [5.6 kB comprimido](https://bundlephobia.com/result?p=@material-ui/unstyled@next)
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -118,3 +144,15 @@ The component handles most of the work necessary to make it accessible. However,
- Each thumb has a user-friendly label (`aria-label`, `aria-labelledby` or `getAriaLabel` prop).
- Each thumb has a user-friendly text for its current value. This is not required if the value matches the semantics of the label. You can change the name with the `getAriaValueText` or `aria-valuetext` prop.
+
+## Limitaciones
+
+### IE 11
+
+The slider's value label is not centered in IE 11. The alignement is not handled to make customizations easier with the lastest browsers. You can solve the issue with:
+
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/slider/slider-fr.md b/docs/src/pages/components/slider/slider-fr.md
index 8a26dd980b92a5..13b2ab5c4c6509 100644
--- a/docs/src/pages/components/slider/slider-fr.md
+++ b/docs/src/pages/components/slider/slider-fr.md
@@ -1,5 +1,5 @@
---
-title: React Slider component
+title: Composant React Sider
components: Slider, SliderUnstyled
githubLabel: 'component: Slider'
materialDesign: https://material.io/components/sliders
@@ -12,8 +12,6 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
[Les curseurs](https://material.io/design/components/sliders.html) reflètent une plage de valeurs sur une barre, à partir de laquelle les utilisateurs peuvent sélectionner une seule valeur. Ils sont idéaux pour ajuster des paramètres tels que le volume, la luminosité ou l'application de filtres d'images.
-- 📦 [22 kB gzipped](/size-snapshot) (but only +8 kB when used together with other Material-UI components).
-
{{"component": "modules/components/ComponentLinkHeader.js"}}
## Continuous sliders
@@ -22,11 +20,15 @@ Continuous sliders allow users to select a value along a subjective range.
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## Discrete sliders
+## Tailles
-Discrete sliders can be adjusted to a specific value by referencing its value indicator. By order of demos:
+For smaller slider, use the prop `size="small"`.
+
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## Discrete sliders
-You can generate a mark for each step with `marks={true}`.
+Discrete sliders can be adjusted to a specific value by referencing its value indicator. You can generate a mark for each step with `marks={true}`.
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -60,25 +62,39 @@ The slider can be used to set the start and end of a range by supplying an array
{{"demo": "pages/components/slider/RangeSlider.js"}}
-## Slider with input field
+### Minimum distance
+
+You can enforce a minimum distance between values in the `onChange` event handler. By default, when you move the pointer over a thumb while dragging another thumb, the active thumb will swap to the hovered thumb. You can disable this behavior with the `disableSwap` prop. If you want the range to shift when reaching minimum distance, you can utilize the `activeThumb` parameter in `onChange`.
In this example an input allows a discrete value to be set.
+## Slider with input field
+
+In this example, an input allows a discrete value to be set.
+
{{"demo": "pages/components/slider/InputSlider.js"}}
+## Couleur
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## Curseurs personnalisés
Here are some examples of customizing the component. Vous pouvez en apprendre plus à ce sujet dans la [page de documentation](/customization/how-to-customize/).
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### Lecteur de musique
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## Vertical sliders
{{"demo": "pages/components/slider/VerticalSlider.js"}}
-**WARNING**: Chrome, Safari and newer Edge versions i.e. any browser based on WebKit exposes ` ` as horizontal ([chromium issue #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217)). By applying `-webkit-appearance: slider-vertical;` the slider is exposed as vertical.
+**AVERTISSEMENT** : Chrome, Safari et les versions plus récentes d'Edge, c'est-à-dire que tout navigateur basé sur WebKit expose ` ` comme horizontal ([problème de chrome #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217)). En appliquant la propriété `-webkit-appearance: slider-vertical;` le curseur est exposé comme vertical.
-However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation for horizontal keys (Arrow Left , Arrow Right ) is reversed ([chromium issue #1162640](https://bugs.chromium.org/p/chromium/issues/detail?id=1162640)). Usually, up and right should increase and left and down should decrease the value. If you apply `-webkit-appearance` you could prevent keyboard navigation for horizontal arrow keys for a truly vertical slider. This might be less confusing to users compared to a change in direction.
+En appliquant la propriétés `-webkit-appearance: slider-vertical;` la navigation au clavier pour les touches horizontales (flèche gauche , flèche droite ) est inversée ([problème de chrome #1162640](https://bugs. chromium.org/p/chromium/issues/detail?id=1162640)). Habituellement, haut et droite devrait augmenter, gauche et bas devrait diminuer la valeur. Si vous appliquez `-webkit-appearance` vous pouvez empêcher la navigation du clavier pour les touches fléchées horizontales pour un curseur vraiment vertical. Cela peut être moins déroutant pour les utilisateurs par rapport à un changement de direction.
{{"demo": "pages/components/slider/VerticalAccessibleSlider.js"}}
@@ -102,11 +118,21 @@ The track can be inverted with `track="inverted"`.
You can use the `scale` prop to represent the `value` on a different scale.
-In the following demo, the value _x_ represents the value _2^x_. Increasing _x_ by one increases the represented value by factor _2_.
+Dans la démo suivante, la valeur _x_ représente la valeur _2^x_. Chaque augmentation de _x_ est multiplié par _2_ pour chaque nouvelle valeur.
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## Unstyled slider
+## Unstyled
+
+
+
+- 📦 [22 kB gzipped](/size-snapshot) (but only +8 kB when used together with other Material-UI components).
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -118,3 +144,15 @@ The component handles most of the work necessary to make it accessible. However,
- Each thumb has a user-friendly label (`aria-label`, `aria-labelledby` or `getAriaLabel` prop).
- Each thumb has a user-friendly text for its current value. This is not required if the value matches the semantics of the label. You can change the name with the `getAriaValueText` or `aria-valuetext` prop.
+
+## Limites
+
+### IE11
+
+Le libellé de la valeur du curseur n'est pas centré dans IE 11. L'alignement n'est pas géré pour faciliter la personnalisation avec les derniers navigateurs. Vous pouvez résoudre ce problème avec:
+
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/slider/slider-ja.md b/docs/src/pages/components/slider/slider-ja.md
index 61bc08eea65206..826ccef5f5a80e 100644
--- a/docs/src/pages/components/slider/slider-ja.md
+++ b/docs/src/pages/components/slider/slider-ja.md
@@ -10,9 +10,7 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
スライダーを使用すると、ユーザーは値の範囲から選択できます。
-[Sliders](https://material.io/design/components/sliders.html) reflect a range of values along a bar, from which users may select a single value. ボリューム、輝度などの設定を調整したり、画像フィルターを適用したりするのに理想的です。
-
-- 📦 [22 kB gzipped](/size-snapshot) (but only +8 kB when used together with other Material-UI components).
+[Sliders](https://material.io/design/components/sliders.html) reflect a range of values along a bar, from which users may select a single value. 音量、明るさ、画像フィルタの適用などの設定を調整するのに最適です。
{{"component": "modules/components/ComponentLinkHeader.js"}}
@@ -22,11 +20,15 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## 個別のスライダー
+## サイズ
+
+小さいスライダーの場合は、`size="small"` を設定してください。
-個別のスライダーは、値インジケーターを参照することで特定の値に調整できます。 デモ順:
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## 個別のスライダー
-`marks={true}`で各ステップのマークを生成できます。
+個別のスライダーは、値インジケーターを参照することで特定の値に調整できます。 `marks={true}`で各ステップのマークを生成できます。
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -44,7 +46,7 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
### Restricted values
-選択可能な値を、 `marks` prop with `step ={null}`で、提供される値に制限できます。
+`step={null}` を追加すると、選択可能な値を `marks` プロパティで指定した値に制限できます。
{{"demo": "pages/components/slider/DiscreteSliderValues.js"}}
@@ -56,27 +58,41 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
## Range slider
-The slider can be used to set the start and end of a range by supplying an array of values to the `value` prop.
+スライダーを使用して、 `value` プロパティに値の配列を供給することで、範囲の開始と終了を設定できます。
{{"demo": "pages/components/slider/RangeSlider.js"}}
+### Minimum distance
+
+`onChange` イベントハンドラー内の値の範囲を最小にするように強制できます。 デフォルトでは、あるつまみをドラッグしている途中に、別のつまみにポインタを移動すると、アクティブなつまみとホバリングしたつまみが入れ替わります。 `disableTouchListener` プロパティでこの機能を無効にできます。 最小距離に達した場合でも範囲を移動させたい場合は、 `onChange` で `activeThumb` パラメータを使います。
+
+{{"demo": "pages/components/slider/MinimumDistanceSlider.js"}}
+
## Slider with input field
-In this example an input allows a discrete value to be set.
+この例では、入力によって離散値を設定することができます。
{{"demo": "pages/components/slider/InputSlider.js"}}
+## カラー
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## Customized sliders
-コンポーネントのカスタマイズの例を次に示します。 詳細については、 [オーバーライドドキュメントページ](/customization/how-to-customize/)ご覧ください。
+コンポーネントのカスタマイズの例を次に示します。 詳細については、 [オーバーライドについてのドキュメント](/customization/how-to-customize/) を参照してください。
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### 音楽プレーヤー
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## 垂直スライダー
{{"demo": "pages/components/slider/VerticalSlider.js"}}
-**WARNING**: Chrome, Safari and newer Edge versions i.e. any browser based on WebKit exposes ` ` as horizontal ([chromium issue #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217)). By applying `-webkit-appearance: slider-vertical;` the slider is exposed as vertical.
+**警告**: Chrome, Safari、および新しいEdgeバージョンなど WebKitをベースにしたすべてのブラウザでは、** ** ` ` 水平方向([chromium issue #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217) )に公開されます。 By applying `-webkit-appearance: slider-vertical;` the slider is exposed as vertical.
However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation for horizontal keys (Arrow Left , Arrow Right ) is reversed ([chromium issue #1162640](https://bugs.chromium.org/p/chromium/issues/detail?id=1162640)). Usually, up and right should increase and left and down should decrease the value. If you apply `-webkit-appearance` you could prevent keyboard navigation for horizontal arrow keys for a truly vertical slider. This might be less confusing to users compared to a change in direction.
@@ -84,29 +100,39 @@ However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation
## Track
-The track shows the range available for user selection.
+Trackは、ユーザーが選択可能な範囲を表示します。
### Removed track
-The track can be turned off with `track={false}`.
+`track={false}` でTrackをオフにできます。
{{"demo": "pages/components/slider/TrackFalseSlider.js"}}
### Inverted track
-The track can be inverted with `track="inverted"`.
+`track="inverted"` でTrackを反転できます。
{{"demo": "pages/components/slider/TrackInvertedSlider.js"}}
## Non-linear scale
-You can use the `scale` prop to represent the `value` on a different scale.
+`scale` プロパティを使用して、異なるスケールの `value` を表すことができます。
In the following demo, the value _x_ represents the value _2^x_. Increasing _x_ by one increases the represented value by factor _2_.
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## Unstyled slider
+## Unstyled
+
+
+
+- 📦 [5.6 kB gzipped](https://bundlephobia.com/result?p=@material-ui/unstyled@next)
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -114,7 +140,19 @@ In the following demo, the value _x_ represents the value _2^x_. Increasing _x_
(WAI-ARIA: https://www.w3.org/TR/wai-aria-practices/#slider)
-コンポーネントは、アクセス可能にするために必要なほとんどの作業を処理します。 ただし、次の点を確認する必要があります。 ただし、次の点を確認する必要があります。 ただし、次の点を確認する必要があります。
+コンポーネントは、アクセス可能にするために必要なほとんどの作業を処理します。 ただし、次の点を確認する必要があります。
+
+- それぞれのつまみがユーザーフレンドリーなラベル(`aria-label`, `aria-labelledby` または `getAriaLabel` プロパティ)を持っていること
+- それぞれのつまみが、現在の値をユーザーフレンドリーなテキストで示していること。 値がラベルのセマンティクスと一致する場合、これは必要ありません。 この名前は、 `getAriaValueText`または`aria-valuetext`プロパティを使用して変更できます。
+
+## 制限事項
+
+### IE 11
+
+The slider's value label is not centered in IE 11. The alignement is not handled to make customizations easier with the lastest browsers. You can solve the issue with:
-- Each thumb has a user-friendly label (`aria-label`, `aria-labelledby` or `getAriaLabel` prop).
-- Each thumb has a user-friendly text for its current value. 値がラベルのセマンティクスと一致する場合、これは必要ありません。 この名前は、 `getAriaValueText`または`aria-valuetext`プロパティを使用して変更できます。
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/slider/slider-pt.md b/docs/src/pages/components/slider/slider-pt.md
index 67fdc79f857cb3..3c189edb2b92df 100644
--- a/docs/src/pages/components/slider/slider-pt.md
+++ b/docs/src/pages/components/slider/slider-pt.md
@@ -12,8 +12,6 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
[Sliders](https://material.io/design/components/sliders.html) refletem um intervalo de valores ao longo de uma barra, a partir do qual os usuários podem selecionar um único valor. Eles são ideais para ajustar configurações como volume, brilho ou aplicação de filtros de imagem.
-- 📦 [22 kB gzipped](/size-snapshot) (mas apenas +8 kB quando usado junto com outros componentes de Material-UI).
-
{{"component": "modules/components/ComponentLinkHeader.js"}}
## Sliders contínuos
@@ -22,11 +20,15 @@ Os sliders contínuos permitem que os usuários selecionem um valor ao longo de
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## Sliders discretos
+## Tamanhos
+
+For smaller slider, use the prop `size="small"`.
-Os sliders discretos podem ser ajustados para um valor específico, fazendo referência ao seu indicador de valor. Por ordem de demonstrações:
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## Sliders discretos
-Você pode gerar uma marca para cada etapa com `marks={true}`.
+Os sliders discretos podem ser ajustados para um valor específico, fazendo referência ao seu indicador de valor. Você pode gerar uma marca para cada etapa com `marks={true}`.
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -60,23 +62,37 @@ O slider pode ser usado para definir o início e o fim de um intervalo, fornecen
{{"demo": "pages/components/slider/RangeSlider.js"}}
+### Minimum distance
+
+You can enforce a minimum distance between values in the `onChange` event handler. By default, when you move the pointer over a thumb while dragging another thumb, the active thumb will swap to the hovered thumb. You can disable this behavior with the `disableSwap` prop. If you want the range to shift when reaching minimum distance, you can utilize the `activeThumb` parameter in `onChange`.
+
+{{"demo": "pages/components/slider/MinimumDistanceSlider.js"}}
+
## Slider com campo de entrada
-Neste exemplo, um campo de entrada permite que um valor seja definido.
+In this example, an input allows a discrete value to be set.
{{"demo": "pages/components/slider/InputSlider.js"}}
+## Cor
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## Sliders customizados
Aqui estão alguns exemplos de customização do componente. Você pode aprender mais sobre isso na [página de documentação de sobrescritas](/customization/how-to-customize/).
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### Music player
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## Sliders verticais
{{"demo": "pages/components/slider/VerticalSlider.js"}}
-**WARNING**: Chrome, Safari and newer Edge versions i.e. any browser based on WebKit exposes ` ` as horizontal ([chromium issue #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217)). By applying `-webkit-appearance: slider-vertical;` the slider is exposed as vertical.
+**AVISO**: versões do Chrome, Safari e do Edge mais recente, ou seja, qualquer navegador baseado no WebKit exibe ` ` horizontal ([de chromium issue #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217)). Aplicando-se `-webkit-appearance: slider-vertical;` o slider é exibido vertical.
However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation for horizontal keys (Arrow Left , Arrow Right ) is reversed ([chromium issue #1162640](https://bugs.chromium.org/p/chromium/issues/detail?id=1162640)). Usually, up and right should increase and left and down should decrease the value. If you apply `-webkit-appearance` you could prevent keyboard navigation for horizontal arrow keys for a truly vertical slider. This might be less confusing to users compared to a change in direction.
@@ -106,7 +122,17 @@ Na seguinte demonstração, o valor _x_ representa o valor _2^x_. Acrescentar em
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## Slider sem estilo
+## Unstyled
+
+
+
+- 📦 [5.6 kB gzipped](https://bundlephobia.com/result?p=@material-ui/unstyled@next)
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -118,3 +144,15 @@ O componente lida com a maior parte do trabalho necessário para torná-lo acess
- Cada marcador possua propriedades de rótulo amigável para o usuário (`aria-label`, `aria-labelledby` ou `getAriaLabel`).
- Cada marcador tenha um texto amigável para o seu valor atual. Isso não é necessário se o valor corresponder ao rótulo exibido no slider. Você pode alterar o nome com as propriedades `getAriaValueText` ou `aria-valuetext`.
+
+## Limitações
+
+### IE 11
+
+The slider's value label is not centered in IE 11. The alignement is not handled to make customizations easier with the lastest browsers. You can solve the issue with:
+
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/slider/slider-ru.md b/docs/src/pages/components/slider/slider-ru.md
index 32f7bf327677bd..742bece6c1774f 100644
--- a/docs/src/pages/components/slider/slider-ru.md
+++ b/docs/src/pages/components/slider/slider-ru.md
@@ -12,8 +12,6 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
[Sliders](https://material.io/design/components/sliders.html) reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.
-- 📦 [22 kB gzipped](/size-snapshot) (but only +8 kB when used together with other Material-UI components).
-
{{"component": "modules/components/ComponentLinkHeader.js"}}
## Continuous sliders
@@ -22,11 +20,15 @@ Continuous sliders allow users to select a value along a subjective range.
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## Discrete sliders
+## Размеры
+
+For smaller slider, use the prop `size="small"`.
-Discrete sliders can be adjusted to a specific value by referencing its value indicator. By order of demos:
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## Discrete sliders
-You can generate a mark for each step with `marks={true}`.
+Discrete sliders can be adjusted to a specific value by referencing its value indicator. You can generate a mark for each step with `marks={true}`.
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -60,18 +62,32 @@ The slider can be used to set the start and end of a range by supplying an array
{{"demo": "pages/components/slider/RangeSlider.js"}}
+### Minimum distance
+
+You can enforce a minimum distance between values in the `onChange` event handler. By default, when you move the pointer over a thumb while dragging another thumb, the active thumb will swap to the hovered thumb. You can disable this behavior with the `disableSwap` prop. If you want the range to shift when reaching minimum distance, you can utilize the `activeThumb` parameter in `onChange`.
+
+{{"demo": "pages/components/slider/MinimumDistanceSlider.js"}}
+
## Slider with input field
-In this example an input allows a discrete value to be set.
+In this example, an input allows a discrete value to be set.
{{"demo": "pages/components/slider/InputSlider.js"}}
+## Цвет
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## Customized sliders
Ниже находятся примеры кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### Music player
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## Vertical sliders
{{"demo": "pages/components/slider/VerticalSlider.js"}}
@@ -106,7 +122,17 @@ In the following demo, the value _x_ represents the value _2^x_. Increasing _x_
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## Unstyled slider
+## Unstyled
+
+
+
+- 📦 [5.6 kB gzipped](https://bundlephobia.com/result?p=@material-ui/unstyled@next)
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -118,3 +144,15 @@ The component handles most of the work necessary to make it accessible. However,
- Each thumb has a user-friendly label (`aria-label`, `aria-labelledby` or `getAriaLabel` prop).
- Each thumb has a user-friendly text for its current value. This is not required if the value matches the semantics of the label. You can change the name with the `getAriaValueText` or `aria-valuetext` prop.
+
+## Ограничения
+
+### IE 11
+
+The slider's value label is not centered in IE 11. The alignement is not handled to make customizations easier with the lastest browsers. You can solve the issue with:
+
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/slider/slider-zh.md b/docs/src/pages/components/slider/slider-zh.md
index 31160351179c00..171d08c7dc0fcb 100644
--- a/docs/src/pages/components/slider/slider-zh.md
+++ b/docs/src/pages/components/slider/slider-zh.md
@@ -12,8 +12,6 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
滑块反映了一根条上的一系列值,用户可以从中选择单个值。 它们通常适用于调节一些设置,譬如调节设备音量、调整屏幕亮度,或者改变图像的滤镜。
-- 📦 [22 kB 压缩大小](/size-snapshot) (但与其他 Material-UI 组件使用时只有+8 kB)。
-
{{"component": "modules/components/ComponentLinkHeader.js"}}
## 连续滑块(Continuous sliders)
@@ -22,11 +20,15 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
{{"demo": "pages/components/slider/ContinuousSlider.js"}}
-## 间续滑块(Discrete sliders)
+## 尺寸
+
+For smaller slider, use the prop `size="small"`.
-用户可以通过参考其值指示器,来将间续滑块调整为某一特定值。 以下是一些案例:
+{{"demo": "pages/components/slider/SliderSizes.js"}}
+
+## 间续滑块(Discrete sliders)
-通过设置 `marks={true}`,你可以针对每个步骤产生一个标记(mark)。
+用户可以通过参考其值指示器,来将间续滑块调整为某一特定值。 通过设置 `marks={true}`,你可以针对每个步骤产生一个标记(mark)。
{{"demo": "pages/components/slider/DiscreteSlider.js"}}
@@ -60,25 +62,39 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#slider'
{{"demo": "pages/components/slider/RangeSlider.js"}}
+### Minimum distance
+
+You can enforce a minimum distance between values in the `onChange` event handler. By default, when you move the pointer over a thumb while dragging another thumb, the active thumb will swap to the hovered thumb. You can disable this behavior with the `disableSwap` prop. If you want the range to shift when reaching minimum distance, you can utilize the `activeThumb` parameter in `onChange`.
+
+{{"demo": "pages/components/slider/MinimumDistanceSlider.js"}}
+
## 带输入框的滑块组件
-在这个例子中,我们允许给输入框设置一个离散值。
+In this example, an input allows a discrete value to be set.
{{"demo": "pages/components/slider/InputSlider.js"}}
+## Color 颜色
+
+{{"demo": "pages/components/slider/ColorSlider.js"}}
+
## 自定义滑块
你可以参考以下一些例子来自定义组件。 您可以在 [重写文档页面](/customization/how-to-customize/) 中了解更多有关此内容的信息。
{{"demo": "pages/components/slider/CustomizedSlider.js"}}
+### Music player
+
+{{"demo": "pages/components/slider/MusicPlayerSlider.js"}}
+
## 纵向滑块
{{"demo": "pages/components/slider/VerticalSlider.js"}}
-**WARNING**: Chrome, Safari and newer Edge versions i.e. any browser based on WebKit exposes ` ` as horizontal ([chromium issue #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217)). By applying `-webkit-appearance: slider-vertical;` the slider is exposed as vertical.
+**警告**: Chrome、Safari 和较新的 Edge 版本,即任何基于 WebKit 的浏览器都会将 ` ` 暴露为水平状态([chromium 问题 #1158217](https://bugs.chromium.org/p/chromium/issues/detail?id=1158217))。 通过应用 `-webkit-appearance: slider-vertical;` 将滑块显示为垂直。
-However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation for horizontal keys (Arrow Left , Arrow Right ) is reversed ([chromium issue #1162640](https://bugs.chromium.org/p/chromium/issues/detail?id=1162640)). Usually, up and right should increase and left and down should decrease the value. If you apply `-webkit-appearance` you could prevent keyboard navigation for horizontal arrow keys for a truly vertical slider. This might be less confusing to users compared to a change in direction.
+然而,应用 `-webkit-appearance: slider-vertical;` 之后会导致水平键的键盘导航(向左箭头 ,向右箭头 )被反转([chromium 问题 #1162640](https://bugs.chromium.org/p/chromium/issues/detail?id=1162640))。 通常情况下,向上、向右应增加,向左、向下应减少数值。 如果你应用 `-webkit-appearance`,那么就可以阻止键盘导航水平方向键的功能,以实现真正的垂直滑块。 与改变方向相比,这可能会减少用户的困惑。
{{"demo": "pages/components/slider/VerticalAccessibleSlider.js"}}
@@ -106,7 +122,17 @@ However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation
{{"demo": "pages/components/slider/NonLinearSlider.js"}}
-## 无样式的滑块
+## Unstyled
+
+
+
+- 📦 [5.6kB 已压缩的包](https://bundlephobia.com/result?p=@material-ui/unstyled@next)
+
+The slider also comes with an unstyled version. It's ideal for doing heavy customizations and minimizing bundle size.
+
+```js
+import SliderUnstyled from '@material-ui/unstyled/SliderUnstyled';
+```
{{"demo": "pages/components/slider/UnstyledSlider.js"}}
@@ -118,3 +144,15 @@ However, by applying `-webkit-appearance: slider-vertical;` keyboard navigation
- 每个滑块都带有一个方便用户的标签(`aria-label`、`aria-labelledby` 或 `getAriaLabel` 属性)。
- 每一个滑块的当前值都有一个方便用户阅读的文字。 如果值与标签的语义相匹配的话,则不需要此操作。 你可以通过`getAriaValueText` 或者 `aria-valuetext` 属性来更改名字。
+
+## 设计局限
+
+### IE 11
+
+The slider's value label is not centered in IE 11. The alignement is not handled to make customizations easier with the lastest browsers. You can solve the issue with:
+
+```css
+.MuiSlider-valueLabel {
+ left: calc(-50% - 4px);
+}
+```
diff --git a/docs/src/pages/components/snackbars/snackbars-de.md b/docs/src/pages/components/snackbars/snackbars-de.md
index 08c1fc8c94fd66..814c1b2a1a2576 100644
--- a/docs/src/pages/components/snackbars/snackbars-de.md
+++ b/docs/src/pages/components/snackbars/snackbars-de.md
@@ -76,11 +76,11 @@ Für fortgeschrittenere Anwendungsfälle können Ihnen folgende Projekte helfen:
### notistack
- 
+ 
-This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
+This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design guidelines).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
+TODO: Add example once notistack is compatible with v5 or replace with [#1824](https://github.com/mui-org/material-ui/issues/1824).
## Barrierefreiheit
diff --git a/docs/src/pages/components/snackbars/snackbars-es.md b/docs/src/pages/components/snackbars/snackbars-es.md
index beec3584a47d50..4728f1fa384ace 100644
--- a/docs/src/pages/components/snackbars/snackbars-es.md
+++ b/docs/src/pages/components/snackbars/snackbars-es.md
@@ -78,9 +78,9 @@ Para usos más avanzados tal vez puedas aprovercharte de:
 
-Este ejemplo demuestra cómo usar [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
+Este ejemplo demuestra cómo usar [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design guidelines).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
+TODO: Add example once notistack is compatible with v5 or replace with [#1824](https://github.com/mui-org/material-ui/issues/1824).
## Accesibilidad
diff --git a/docs/src/pages/components/snackbars/snackbars-fr.md b/docs/src/pages/components/snackbars/snackbars-fr.md
index 36d370ce3a28a2..bf3f195dc0c7ef 100644
--- a/docs/src/pages/components/snackbars/snackbars-fr.md
+++ b/docs/src/pages/components/snackbars/snackbars-fr.md
@@ -1,5 +1,5 @@
---
-title: React Snackbar component
+title: Composant React Snackbar
components: Snackbar, SnackbarContent
githubLabel: 'component: Snackbar'
materialDesign: https://material.io/components/snackbars
@@ -8,9 +8,9 @@ waiAria: 'https://www.w3.org/TR/wai-aria-1.1/#alert'
# Snackbar
-Snackbars provide brief messages about app processes. The component is also known as a toast.
+Les snackbars fournissent de brèves notifications. The component is also known as a toast.
-[Snackbars](https://material.io/design/components/snackbars.html) inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear.
+Snackbars informe les utilisateurs d'une information qu'une application a effectué ou va effectuer. They appear temporarily, towards the bottom of the screen. Ils ne devraient pas interrompre l'expérience de l'utilisateur, et ne nécessitent pas de saisie de l'utilisateur pour disparaître.
Snackbars contain a single line of text directly related to the operation performed. They may contain a text action, but no icons. You can use them to display notifications.
@@ -78,7 +78,7 @@ Pour des cas d'utilisation plus avancés, vous pourrez peut-être tirer parti de
 
-This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
+This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack a une API **impérative** qui facilite l'affichage de snackbars, sans avoir à gérer leur état d'ouverture/fermeture. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/snackbars/snackbars-ja.md b/docs/src/pages/components/snackbars/snackbars-ja.md
index 8bb276cf75b0e2..44da46a8c577e9 100644
--- a/docs/src/pages/components/snackbars/snackbars-ja.md
+++ b/docs/src/pages/components/snackbars/snackbars-ja.md
@@ -28,7 +28,7 @@ Google Keepのスナックバーの動作を再現することを目的とした
## カスタマイズされたスナックバー
-コンポーネントのカスタマイズの例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズの例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/snackbars/CustomizedSnackbars.js"}}
@@ -78,9 +78,9 @@ In wide layouts, snackbars can be left-aligned or center-aligned if they are con
 
-This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
+This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design guidelines).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
+TODO: Add example once notistack is compatible with v5 or replace with [#1824](https://github.com/mui-org/material-ui/issues/1824).
## アクセシビリティ
diff --git a/docs/src/pages/components/snackbars/snackbars-pt.md b/docs/src/pages/components/snackbars/snackbars-pt.md
index 29098ec13ba7a5..b6583446aaf05f 100644
--- a/docs/src/pages/components/snackbars/snackbars-pt.md
+++ b/docs/src/pages/components/snackbars/snackbars-pt.md
@@ -78,9 +78,9 @@ Para situações de uso mais avançadas, você pode tirar proveito com:
 
-Este exemplo demonstra como usar com [notistack](https://github.com/iamhosseindhv/notistack). notistack tem uma **API imperativa** que facilita a exibição de snackbars, sem ter que lidar com seu estado de aberto/fechado. Também permite que você **empilhe** eles em cima um do outro (embora isso não seja recomendado pela especificação do Material Design).
+Este exemplo demonstra como usar com [notistack](https://github.com/iamhosseindhv/notistack). notistack tem uma **API imperativa** que facilita a exibição de snackbars, sem ter que lidar com seu estado de aberto/fechado. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design guidelines).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
+TODO: Add example once notistack is compatible with v5 or replace with [#1824](https://github.com/mui-org/material-ui/issues/1824).
## Acessibilidade
diff --git a/docs/src/pages/components/snackbars/snackbars-ru.md b/docs/src/pages/components/snackbars/snackbars-ru.md
index 14b3f734e4832b..41b1b48727cca0 100644
--- a/docs/src/pages/components/snackbars/snackbars-ru.md
+++ b/docs/src/pages/components/snackbars/snackbars-ru.md
@@ -28,7 +28,7 @@ A basic snackbar that aims to reproduce Google Keep's snackbar behavior.
## Customized snackbars
-Ниже находятся примеры кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находятся примеры кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/snackbars/CustomizedSnackbars.js"}}
@@ -78,9 +78,9 @@ Snackbars should appear above FABs (on mobile).
 
-This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design specification).
+This example demonstrates how to use [notistack](https://github.com/iamhosseindhv/notistack). notistack has an **imperative API** that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design guidelines).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
+TODO: Add example once notistack is compatible with v5 or replace with [#1824](https://github.com/mui-org/material-ui/issues/1824).
## Доступность
diff --git a/docs/src/pages/components/snackbars/snackbars-zh.md b/docs/src/pages/components/snackbars/snackbars-zh.md
index 7248381faa2198..c4f0aabb7a5f1a 100644
--- a/docs/src/pages/components/snackbars/snackbars-zh.md
+++ b/docs/src/pages/components/snackbars/snackbars-zh.md
@@ -10,7 +10,7 @@ waiAria: 'https://www.w3.org/TR/wai-aria-1.1/#alert'
消息条提供简短的通知信息。 该组件也被称为 toast。
-消息条将应用程序已执行或即将执行的进程通知给用户。 它们会从屏幕底部短暂地出现。 They shouldn't interrupt the user experience, and they don't require user input to disappear.
+消息条将应用程序已执行或即将执行的进程通知给用户。 它们会从屏幕底部短暂地出现。 它们不应该打断用户体验,也不需要用户输入就能消失。
消息条包含了一行直接与所执行操作相关的文本。 它们可能包含一些文本操作,但并不会展示图标。 您也可以用他们展示通知。
@@ -78,9 +78,9 @@ waiAria: 'https://www.w3.org/TR/wai-aria-1.1/#alert'
 
-以下例子演示了如何使用 [notistack](https://github.com/iamhosseindhv/notistack)。 notistack 有一个 **imperative API** 可以轻松地显示一串消息条,且无需处理其打开/关闭状态。 您也可以把它们 **堆叠** 在一起(尽管 Material Design 规范不鼓励这样做)。
+以下例子演示了如何使用 [notistack](https://github.com/iamhosseindhv/notistack)。 notistack 有一个 **imperative API** 可以轻松地显示一串消息条,且无需处理其打开/关闭状态。 It also enables you to **stack** them on top of one another (although this is discouraged by the Material Design guidelines).
-{{"demo": "pages/components/snackbars/IntegrationNotistack.js", "defaultCodeOpen": false}}
+TODO: Add example once notistack is compatible with v5 or replace with [#1824](https://github.com/mui-org/material-ui/issues/1824).
## 无障碍设计
diff --git a/docs/src/pages/components/speed-dial/speed-dial-de.md b/docs/src/pages/components/speed-dial/speed-dial-de.md
index 6d1d097f5c3619..1b6c1eca7de8cc 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-de.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-de.md
@@ -2,7 +2,7 @@
title: React Speed Dial component
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,6 +20,10 @@ Die schwebende Aktionstaste kann verwandte Aktionen anzeigen.
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
+## Spielwiese
+
+{{"demo": "pages/components/speed-dial/PlaygroundSpeedDial.js"}}
+
## Kundenspezifisches Schließsymbol
Sie können ein alternatives Symbol für den geschlossenen und den geöffneten Zustand mit den `icon` und `openIcon` Eigenschaften der Komponente `SpeedDialIcon` bereitstellen.
diff --git a/docs/src/pages/components/speed-dial/speed-dial-es.md b/docs/src/pages/components/speed-dial/speed-dial-es.md
index 20209ac86e162a..e6ff692bbd8cb1 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-es.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-es.md
@@ -2,7 +2,7 @@
title: React Speed Dial component
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,6 +20,10 @@ The floating action button can display related actions.
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
+## Campo de pruebas
+
+{{"demo": "pages/components/speed-dial/PlaygroundSpeedDial.js"}}
+
## Controlled speed dial
You can provide an alternate icon for the closed and open states using the `icon` and `openIcon` props of the `SpeedDialIcon` component.
diff --git a/docs/src/pages/components/speed-dial/speed-dial-fr.md b/docs/src/pages/components/speed-dial/speed-dial-fr.md
index 79dcfd964c007e..1889961530e96a 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-fr.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-fr.md
@@ -1,8 +1,8 @@
---
-title: React Speed Dial component
+title: Composant React Speed Dial
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,12 +20,16 @@ The floating action button can display related actions.
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
-## Controlled speed dial
+## Playground
You can provide an alternate icon for the closed and open states using the `icon` and `openIcon` props of the `SpeedDialIcon` component.
+## Numérotation rapide contrôlée
+
The SpeedDialActions tooltips can be be displayed persistently so that users don't have to long-press in order to see the tooltip on touch devices.
+You can provide an alternate icon for the closed and open states using the `icon` and `openIcon` props of the `SpeedDialIcon` component.
+
## Custom close icon
You can provide an alternate icon for the closed and open states using the `icon` and `openIcon` props of the `SpeedDialIcon` component.
@@ -34,9 +38,9 @@ You can provide an alternate icon for the closed and open states using the `icon
## Persistent action tooltips
-The SpeedDialActions tooltips can be displayed persistently so that users don't have to long-press to see the tooltip on touch devices.
+Les info-bulles SpeedDialActions peuvent être affichées de manière persistante afin que les utilisateurs n'aient pas à appuyer longuement pour voir l'info-bulle sur les appareils tactiles.
-It is enabled here across all devices for demo purposes, but in production it could use the `isTouch` logic to conditionally set the prop.
+Il est activé ici sur tous les appareils à des fins de démonstration, mais en production, il pourrait utiliser la logique `isTouch` pour définir l'accessoire de manière conditionnelle.
{{"demo": "pages/components/speed-dial/SpeedDialTooltipOpen.js"}}
@@ -44,20 +48,20 @@ It is enabled here across all devices for demo purposes, but in production it co
### ARIA
-#### Required
+#### Obligatoire
-- You should provide an `ariaLabel` for the speed dial component.
-- You should provide a `tooltipTitle` for each speed dial action.
+- Vous devez fournir un `ariaLabel` pour le composant de numérotation rapide.
+- Vous devez fournir un `tooltipTitle` pour chaque action de numérotation rapide.
-#### Provided
+#### Fourni
-- The Fab has `aria-haspopup`, `aria-expanded` and `aria-controls` attributes.
-- The speed dial actions container has `role="menu"` and `aria-orientation` set according to the direction.
-- The speed dial actions have `role="menuitem"`, and an `aria-describedby` attribute that references the associated tooltip.
+- Le Fab a les attributs `aria-haspopup`, `aria-expanded` et `aria-controls`.
+- Le conteneur d'actions de numérotation rapide a `role="menu"` et `aria-orientation` définis en fonction de la direction.
+- Les actions de numérotation rapide ont `role="menuitem"`, et un attribut `aria-describedby` qui fait référence à l'info-bulle associée.
### Clavier
-- The speed dial opens on focus.
-- The Space and Enter keys trigger the selected speed dial action, and toggle the speed dial open state.
-- The cursor keys move focus to the next or previous speed dial action. (Note that any cursor direction can be used initially to open the speed dial. This enables the expected behavior for the actual or perceived orientation of the speed dial, for example for a screen reader user who perceives the speed dial as a drop-down menu.)
-- The Escape key closes the speed dial and, if a speed dial action was focused, returns focus to the Fab.
+- Le cadran abrégé s'ouvre sur la mise au point.
+- Les touches Espace et Entrée déclenchent l'action de numérotation rapide sélectionnée et basculent l'état ouvert de la numérotation rapide.
+- Les touches du curseur déplacent le focus vers l'action de numérotation rapide suivante ou précédente. (Notez que n'importe quelle direction du curseur peut être utilisée initialement pour ouvrir la numérotation abrégée. Cela permet le comportement attendu pour l'orientation réelle ou perçue de la numérotation rapide, par exemple pour un utilisateur de lecteur d'écran qui perçoit la numérotation rapide comme un menu déroulant.)
+- La touche Échap ferme la numérotation abrégée et, si une action de numérotation abrégée a été focalisée, renvoie la focalisation au Fab.
diff --git a/docs/src/pages/components/speed-dial/speed-dial-ja.md b/docs/src/pages/components/speed-dial/speed-dial-ja.md
index 4641df98bbf96c..1570f8672495bf 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-ja.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-ja.md
@@ -2,7 +2,7 @@
title: React Speed Dial component
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,6 +20,10 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
+## Playground
+
+{{"demo": "pages/components/speed-dial/PlaygroundSpeedDial.js"}}
+
## カスタムcloseアイコン
`SpeedDialIcon` コンポーネントの `アイコン` と `openIcon` props を使用して、閉じた状態と開いた状態の代替アイコンを提供できます。
diff --git a/docs/src/pages/components/speed-dial/speed-dial-pt.md b/docs/src/pages/components/speed-dial/speed-dial-pt.md
index 64895ec0e60b20..70da8fc7daa578 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-pt.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-pt.md
@@ -2,7 +2,7 @@
title: Componente React Acesso Rápido
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,6 +20,10 @@ O botão de ação flutuante pode exibir ações relacionadas.
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
+## Área de exemplos
+
+{{"demo": "pages/components/speed-dial/PlaygroundSpeedDial.js"}}
+
## Ícone de fechamento customizado
Você pode fornecer um ícone alternativo para os estados de aberto e fechado usando as propriedades `icon` e `openIcon` do componente `SpeedDialIcon`.
diff --git a/docs/src/pages/components/speed-dial/speed-dial-ru.md b/docs/src/pages/components/speed-dial/speed-dial-ru.md
index 8353f642e4e6f8..d603a7bbc85395 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-ru.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-ru.md
@@ -2,7 +2,7 @@
title: React Speed Dial component
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,6 +20,10 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
+## Песочница
+
+{{"demo": "pages/components/speed-dial/PlaygroundSpeedDial.js"}}
+
## Controlled speed dial
You can provide an alternate icon for the closed and open states using the `icon` and `openIcon` props of the `SpeedDialIcon` component.
diff --git a/docs/src/pages/components/speed-dial/speed-dial-zh.md b/docs/src/pages/components/speed-dial/speed-dial-zh.md
index 2a2265e5d0619d..4676a87b6aa5d1 100644
--- a/docs/src/pages/components/speed-dial/speed-dial-zh.md
+++ b/docs/src/pages/components/speed-dial/speed-dial-zh.md
@@ -2,7 +2,7 @@
title: React Speed Dial(快速拨号)组件
components: SpeedDial, SpeedDialAction, SpeedDialIcon
githubLabel: 'component: SpeedDial'
-0: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
+materialDesign: 'https://material.io/components/buttons-floating-action-button#types-of-transitions'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
---
@@ -20,6 +20,10 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#menubutton'
{{"demo": "pages/components/speed-dial/BasicSpeedDial.js"}}
+## 练习
+
+{{"demo": "pages/components/speed-dial/PlaygroundSpeedDial.js"}}
+
## 自定义关闭图标
您可以使用 `SpeedDialIcon` 组件的 `图标` 和 `openIcon` 道具 为关闭和打开状态提供备用图标。
diff --git a/docs/src/pages/components/stack/stack-de.md b/docs/src/pages/components/stack/stack-de.md
new file mode 100644
index 00000000000000..7b2304b266414f
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-de.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## Nutzung
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+To control space between children, use the `spacing` prop. The spacing value can be any number, including decimals and any string. The prop is converted into a CSS property using the [`theme.spacing()`](/customization/spacing/) helper.
+
+## Direction
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Trenner (Divider)
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## Responsive values
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## Interaktive Liste
+
+Nachfolgend finden Sie eine interaktive Demo, mit der Sie die visuellen Ergebnisse der verschiedenen Einstellungen untersuchen können:
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/stack/stack-es.md b/docs/src/pages/components/stack/stack-es.md
new file mode 100644
index 00000000000000..bf3921c967a139
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-es.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## Implementación
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+To control space between children, use the `spacing` prop. The spacing value can be any number, including decimals and any string. The prop is converted into a CSS property using the [`theme.spacing()`](/customization/spacing/) helper.
+
+## Direction
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Divisores
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## Responsive values
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## Explora
+
+Debajo de esta línea hay una demostración interactiva que permite explorar el resultado visual de las distintas configuraciones:
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/stack/stack-fr.md b/docs/src/pages/components/stack/stack-fr.md
new file mode 100644
index 00000000000000..a9b6358ba842b7
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-fr.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## Utilisation
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+To control space between children, use the `spacing` prop. The spacing value can be any number, including decimals and any string. Cette fonction de transformation de sortie peut être personnalisée [à l'aide du thème](/customization/spacing/).
+
+## Direction
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Dividers (Séparateurs)
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## Responsive values
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## Interactif
+
+Vous trouverez ci-dessous une démo interactive vous permettant d'explorer les résultats visuels des différents paramètres:
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/stack/stack-ja.md b/docs/src/pages/components/stack/stack-ja.md
new file mode 100644
index 00000000000000..cd2d0b7198f552
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-ja.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## 使い方
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+To control space between children, use the `spacing` prop. The spacing value can be any number, including decimals and any string. The prop is converted into a CSS property using the [`theme.spacing()`](/customization/spacing/) helper.
+
+## 方向
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Dividers
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## Responsive values
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## インタラクティブ
+
+以下は、さまざまな設定の視覚的な結果を調べることができるインタラクティブなデモです。
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/stack/stack-pt.md b/docs/src/pages/components/stack/stack-pt.md
new file mode 100644
index 00000000000000..f7f1fc35950aa3
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-pt.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## Uso
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+Para controlar o espaço entre os filhos, use a prop ` spacing ` The spacing value can be any number, including decimals and any string. As props são convertidas em css usando o auxiliar [`theme.spacing()`](/customization/spacing/)
+
+## Direção
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Divisores
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## Valores responsivos
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## Interativo
+
+Abaixo está uma demonstração interativa que permite explorar os resultados visuais das diferentes configurações:
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/stack/stack-ru.md b/docs/src/pages/components/stack/stack-ru.md
new file mode 100644
index 00000000000000..f99dfd4d593b9b
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-ru.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## Использование
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+To control space between children, use the `spacing` prop. The spacing value can be any number, including decimals and any string. The prop is converted into a CSS property using the [`theme.spacing()`](/customization/spacing/) helper.
+
+## Direction
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Разделитель
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## Responsive values
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## Интерактивность
+
+Ниже приведен интерактивный пример, который демонстрирует результаты различных настроек сетки:
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/stack/stack-zh.md b/docs/src/pages/components/stack/stack-zh.md
new file mode 100644
index 00000000000000..823f4fe1263f2f
--- /dev/null
+++ b/docs/src/pages/components/stack/stack-zh.md
@@ -0,0 +1,51 @@
+---
+title: React Stack component
+components: Stack
+githubLabel: 'component: Stack'
+---
+
+# Stack
+
+The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
+
+{{"component": "modules/components/ComponentLinkHeader.js"}}
+
+## 使用
+
+`Stack` is concerned with one-dimensional layouts, while [Grid](/components/grid/) that handles two-dimensional layouts. The default direction is `column` which stacks children vertically.
+
+{{"demo": "pages/components/stack/BasicStack.js", "bg": true}}
+
+To control space between children, use the `spacing` prop. The spacing value can be any number, including decimals and any string. The prop is converted into a CSS property using the [`theme.spacing()`](/customization/spacing/) helper.
+
+## 方向
+
+By default, `Stack` arranges items vertically in a `column`. However, the `direction` prop can be used to position items horizontally in a `row` as well.
+
+{{"demo": "pages/components/stack/DirectionStack.js", "bg": true}}
+
+## Dividers(分隔线)
+
+Use the `divider` prop to insert an element between each child. This works particularly well with the [Divider](/components/divider/) component.
+
+{{"demo": "pages/components/stack/DividerStack.js", "bg": true}}
+
+## 响应式的值
+
+You can switch the `direction` or `spacing` values based on the active breakpoint.
+
+{{"demo": "pages/components/stack/ResponsiveStack.js", "bg": true}}
+
+## 交互式
+
+下面是一个交互式的演示,你也可以探索不同设置下的视觉结果:
+
+{{"demo": "pages/components/stack/InteractiveStack.js", "hideToolbar": true, "bg": true}}
+
+## System props
+
+As a CSS utility component, the `Stack` supports all [`system`](/system/properties/) properties. You can use them as props directly on the component. For instance, a margin-top:
+
+```jsx
+
+```
diff --git a/docs/src/pages/components/steppers/steppers-de.md b/docs/src/pages/components/steppers/steppers-de.md
index 7d7df3bc01a933..65a2bfc890b878 100644
--- a/docs/src/pages/components/steppers/steppers-de.md
+++ b/docs/src/pages/components/steppers/steppers-de.md
@@ -1,5 +1,5 @@
---
-title: React Stepper component
+title: React Stepper Komponente
components: MobileStepper, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper
githubLabel: 'component: Stepper'
materialDesign: https://material.io/archive/guidelines/components/steppers.html
@@ -11,7 +11,7 @@ materialDesign: https://material.io/archive/guidelines/components/steppers.html
[Stepper](https://material.io/archive/guidelines/components/steppers.html) zeigen den Fortschritt durch eine Folge logischer und nummerierter Schritte an. Sie können auch zur Navigation verwendet werden. Steppers können eine vorübergehende Rückmeldung anzeigen, nachdem ein Schritt gespeichert wurde.
-- **Types of Steps**: Editable, Non-editable, Mobile, Optional
+- **Arten von Schritten**: Bearbeitbar, Nicht editierbar, Mobil, Optional
- **Types of Steppers**: Horizontal, Vertical, Linear, Non-linear
{{"component": "modules/components/ComponentLinkHeader.js"}}
@@ -28,7 +28,7 @@ Horizontal steppers are ideal when the contents of one step depend on an earlier
A linear stepper allows the user to complete the steps in sequence.
-Der `Stepper` kann gesteuert werden, indem der aktuelle Schrittindex (auf Null basierend) als `activeStep` Eigenschaft übergeben wird. Die `Stepper-` Ausrichtung wird mithilfe der Eigenschaft `orientation` gesetzt.
+Der `Stepper` kann gesteuert werden, indem der aktuelle Schrittindex (auf Null basierend) als `activeStep` Eigenschaft übergeben wird. Die `Stepper` Ausrichtung wird mithilfe der Eigenschaft `orientation` gesetzt.
Dieses Beispiel zeigt auch die Verwendung eines optionalen Schritt durch setzten der `optional` Eigenschaft auf der zweiten `Step` Komponente. Beachten Sie, dass Sie selbst entscheiden müssen, wann ein optionaler Schritt übersprungen wird. Wenn Sie dies für einen bestimmten Schritt festgelegt haben, müssen Sie `complete={false}` setzten, um anzuzeigen, dass der Index des aktiven Schritts den optionalen Schritt überschritten hat, jedoch nicht wirklich abgeschlossen ist.
@@ -38,7 +38,7 @@ Dieses Beispiel zeigt auch die Verwendung eines optionalen Schritt durch setzten
Mit nichtlinearen Steppern können Benutzer an jedem Punkt einen mehrstufigen Fluss einsteigen.
-Dieses Beispiel ähnelt dem regulären horizontalen Stepper, mit der Ausnahme, dass Schritte nicht mehr automatisch auf `=disabled={true}` basierend auf der Eigenschaft `activeStep` gesetzt werden.
+Dieses Beispiel ähnelt dem regulären horizontalen Stepper, mit der Ausnahme, dass Schritte nicht mehr automatisch auf `disabled={true}` basierend auf der Eigenschaft `activeStep` gesetzt werden.
The use of the `StepButton` here demonstrates clickable step labels, as well as setting the `completed` flag. However because steps can be accessed in a non-linear fashion, it's up to your own implementation to determine when all steps are completed (or even if they need to be completed).
diff --git a/docs/src/pages/components/steppers/steppers-fr.md b/docs/src/pages/components/steppers/steppers-fr.md
index 725a3b5fd3f4ba..f054c7f2d08679 100644
--- a/docs/src/pages/components/steppers/steppers-fr.md
+++ b/docs/src/pages/components/steppers/steppers-fr.md
@@ -1,5 +1,5 @@
---
-title: React Stepper component
+title: Composant React Stepper
components: MobileStepper, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper
githubLabel: 'component: Stepper'
materialDesign: https://material.io/archive/guidelines/components/steppers.html
@@ -9,92 +9,92 @@ materialDesign: https://material.io/archive/guidelines/components/steppers.html
Steppers convey progress through numbered steps. It provides a wizard-like workflow.
-[Steppers](https://material.io/archive/guidelines/components/steppers.html) display progress through a sequence of logical and numbered steps. They may also be used for navigation. Steppers may display a transient feedback message after a step is saved.
+Les Steppers affichent la progression à travers une séquence d'étapes logiques et numérotées. They may also be used for navigation. Steppers may display a transient feedback message after a step is saved.
-- **Types of Steps**: Editable, Non-editable, Mobile, Optional
-- **Types of Steppers**: Horizontal, Vertical, Linear, Non-linear
+- **Types d’étapes**: Modifiable, Non éditable, Mobile, Optionnel
+- **Types d'etapes**: Horizontal, vertical, linéaire, non linéaire
{{"component": "modules/components/ComponentLinkHeader.js"}}
-> **Note:** Steppers are no longer documented in the [Material Design guidelines](https://material.io/), but Material-UI will continue to support them.
+> **Note:** les Steppers ne seront plus documenté dans le [Material Design guidelines](https://material.io/), mais Material-UI continue le support.
-## Horizontal Stepper
+## Stepper horizontale
-Horizontal steppers are ideal when the contents of one step depend on an earlier step.
+Les Steppers horizontales sont idéelles lorsque le contenu d'une étape dépend d'une étape antérieure.
-{{"demo": "pages/components/steppers/HorizontalLinearStepper.js", "bg": true}}
+Évitez d'utiliser des noms d'étapes longues dans les étapes horizontales.
-### Linear
+### Barre de progression linéaire
-A linear stepper allows the user to complete the steps in sequence.
+Un Steper linéaire permet à l'utilisateur de compléter les étapes en séquence.
-The `Stepper` can be controlled by passing the current step index (zero-based) as the `activeStep` property. `Stepper` orientation is set using the `orientation` property.
+La `Stepper` peut être contrôlée en passant l'indice d'étape actuel (basé sur zéro) en tant que propriété `activeStep`. L'orientation de `Stepper` est définie à l'aide de la prop `orientation`.
-This example also shows the use of an optional step by placing the `optional` property on the second `Step` component. Note that it's up to you to manage when an optional step is skipped. Once you've determined this for a particular step you must set `completed={false}` to signify that even though the active step index has gone beyond the optional step, it's not actually complete.
+Cet exemple montre également l'utilisation d'une Stepper facultative en plaçant la prop `optional` sur le deuxième composant `Step`. Note that it's up to you to manage when an optional step is skipped. Once you've determined this for a particular step you must set `completed={false}` to signify that even though the active step index has gone beyond the optional step, it's not actually complete.
{{"demo": "pages/components/steppers/HorizontalLinearStepper.js"}}
### Non-linear
-Non-linear steppers allow users to enter a multi-step flow at any point.
+Les steppers non linéaires permettent à l'utilisateur d'entrer un flux multi-étapes à n'importe quel moment.
-This example is similar to the regular horizontal stepper, except steps are no longer automatically set to `disabled={true}` based on the `activeStep` property.
+Cet exemple est similaire à la stepper horizontale normale, excepté les étapes ne sont plus automatiquement définies à `disabled={true}` en se basant sur la prop `activeStep`.
The use of the `StepButton` here demonstrates clickable step labels, as well as setting the `completed` flag. However because steps can be accessed in a non-linear fashion, it's up to your own implementation to determine when all steps are completed (or even if they need to be completed).
{{"demo": "pages/components/steppers/HorizontalNonLinearStepper.js"}}
-### Customized Stepper
+### Libellé alternatif
Labels can be placed below the step icon by setting the `alternativeLabel` prop on the `Stepper` component.
{{"demo": "pages/components/steppers/HorizontalLinearAlternativeLabelStepper.js"}}
-### Non-linear - Error Step
+### Étape d'erreur
{{"demo": "pages/components/steppers/HorizontalStepperWithError.js"}}
-### Non-linear - Alternative Label
+### Étape horizontale personnalisée
Voici un exemple de personnalisation du composant. Vous pouvez en savoir plus dans la [page de documentation des overrides](/customization/how-to-customize/).
{{"demo": "pages/components/steppers/CustomizedSteppers.js"}}
-## Vertical Stepper
+## Stepper verticale
-Vertical steppers are designed for narrow screen sizes. They are ideal for mobile. All the features of the horizontal stepper can be implemented.
+Les Steppers verticaux sont conçus pour les tailles d’écran étroites. Elles sont idéales pour les mobiles. Toutes les fonctionnalités de Stepper horizontale peuvent être implémentées.
{{"demo": "pages/components/steppers/VerticalLinearStepper.js"}}
### Perfomance
-The content of a step is unmounted when closed. If you need to make the content available to search engines or render expensive component trees inside your modal while optimizing for interaction responsiveness it might be a good idea to keep the step mounted with:
+Le contenu d'un Stepper est démonté lorsqu'il est fermé. Si vous devez rendre le contenu disponible pour les moteurs de recherche ou afficher des arborescences de composants longs dans votre modal tout en optimisant la réactivité des interactions il peut être judicieux de modifier ce comportement par défaut en passant la propriété `keepMounted` :
```jsx
```
-## Mobile Stepper
+## Stepper de mobile
-This component implements a compact stepper suitable for a mobile device. It has more limited functionality than the vertical stepper. See [mobile steps](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps) for its inspiration.
+This component implements a compact stepper suitable for a mobile device. Il a plus de fonctionnalités limitées que le Stepper vertical. See [mobile steps](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps) for its inspiration.
-The mobile stepper supports three variants to display progress through the available steps: text, dots, and progress.
+Le Stepper mobile prend en charge trois variantes pour afficher la progression à travers les étapes disponibles : text, dots, et progress.
### Text
-Use dots when the number of steps isn’t large.
+L'étape actuelle et le nombre total d'étapes sont affichés sous forme de texte.
{{"demo": "pages/components/steppers/TextMobileStepper.js", "bg": true}}
-### Text with Carousel effect
+### Texte avec effet de carrousel
-This demo is very similar to the previous, the difference is the usage of [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) to make the transition of steps.
+Cette démo utilise [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) pour créer un carrousel.
{{"demo": "pages/components/steppers/SwipeableTextMobileStepper.js", "bg": true}}
### Dots
-Use dots when the number of steps is small.
+Utilisez des points lorsque le nombre d'étape est petit.
{{"demo": "pages/components/steppers/DotsMobileStepper.js", "bg": true}}
diff --git a/docs/src/pages/components/steppers/steppers-ja.md b/docs/src/pages/components/steppers/steppers-ja.md
index 5d7a1bc2e3a53c..764d2c64c29052 100644
--- a/docs/src/pages/components/steppers/steppers-ja.md
+++ b/docs/src/pages/components/steppers/steppers-ja.md
@@ -5,9 +5,9 @@ githubLabel: 'component: Stepper'
materialDesign: https://material.io/archive/guidelines/components/steppers.html
---
-# Stepper(ステッパー)
+# Stepper ステッパー
-ステッパーは、番号の付いたステップを通して進捗を伝えます。 ウィザードのようなワークフローを提供します。 ウィザードのようなワークフローを提供します。
+ステッパーは、番号の付いたステップを通して進捗を伝えます。 ウィザードのようなワークフローを提供します。
[Steppers](https://material.io/archive/guidelines/components/steppers.html)は、一連の論理ステップと番号付きステップの進行状況を表示します。 ナビゲーションにも使用できます。 ステッパーは、ステップが保存された後に一時的なフィードバックメッセージを表示する場合があります。
@@ -30,7 +30,7 @@ Horizontal steppers are ideal when the contents of one step depend on an earlier
`Stepper` は、現在のステップインデックス(ゼロベース)を `activeStep` プロパティとして渡すことで制御できます。 `Stepper`方向は、 `orientation`プロパティを使用して設定されます。
-この例では、 `optional`プロパティを第2の`Step`コンポーネントに配置して、オプションの手順を使用する方法も示します。 オプションの手順がスキップされる場合の管理はユーザー次第です。 この例では、 `optional`プロパティを第2の`Step`コンポーネントに配置して、オプションの手順を使用する方法も示します。 オプションの手順がスキップされる場合の管理はユーザー次第です。 特定のステップでこれを決定したら、`completed={false}` を設定して、アクティブなステップインデックスがオプションのステップを超えていても、実際には完了していないことを示す必要があります。
+この例では、 `optional`プロパティを第2の`Step`コンポーネントに配置して、オプションの手順を使用する方法も示します。 オプションの手順がスキップされる場合の管理はユーザー次第です。 特定のステップでこれを決定したら、`completed={false}` を設定して、アクティブなステップインデックスがオプションのステップを超えていても、実際には完了していないことを示す必要があります。
{{"demo": "pages/components/steppers/HorizontalLinearStepper.js"}}
@@ -56,7 +56,7 @@ The use of the `StepButton` here demonstrates clickable step labels, as well as
### Non-linear - Alternative Label
-コンポーネントのカスタマイズ例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズ例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/steppers/CustomizedSteppers.js"}}
@@ -76,7 +76,7 @@ The content of a step is unmounted when closed. If you need to make the content
## モバイルステッパー
-このコンポーネントは、モバイルデバイスに適したコンパクトなステッパーを実装します。 このコンポーネントは、モバイルデバイスに適したコンパクトなステッパーを実装します。 このコンポーネントは、モバイルデバイスに適したコンパクトなステッパーを実装します。 その着想については、[mobile steps](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps)を参照してください。 It has more limited functionality than the vertical stepper. このコンポーネントは、モバイルデバイスに適したコンパクトなステッパーを実装します。 このコンポーネントは、モバイルデバイスに適したコンパクトなステッパーを実装します。 その着想については、[mobile steps](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps)を参照してください。
+このコンポーネントは、モバイルデバイスに適したコンパクトなステッパーを実装します。 It has more limited functionality than the vertical stepper. その着想については、[mobile steps](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps)を参照してください。
The mobile stepper supports three variants to display progress through the available steps: text, dots, and progress.
diff --git a/docs/src/pages/components/steppers/steppers-ru.md b/docs/src/pages/components/steppers/steppers-ru.md
index 15ada9613249ea..0d795da0ccb1c2 100644
--- a/docs/src/pages/components/steppers/steppers-ru.md
+++ b/docs/src/pages/components/steppers/steppers-ru.md
@@ -56,7 +56,7 @@ Labels can be placed below the step icon by setting the `alternativeLabel` prop
### Non-linear - Alternative Label
-Ниже находится пример кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находится пример кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/steppers/CustomizedSteppers.js"}}
diff --git a/docs/src/pages/components/steppers/steppers-zh.md b/docs/src/pages/components/steppers/steppers-zh.md
index 3312a5217f5e79..ad74024c4c1fe7 100644
--- a/docs/src/pages/components/steppers/steppers-zh.md
+++ b/docs/src/pages/components/steppers/steppers-zh.md
@@ -68,7 +68,7 @@ materialDesign: https://material.io/archive/guidelines/components/steppers.html
### 文本
-The content of a step is unmounted when closed. If you need to make the content available to search engines or render expensive component trees inside your modal while optimizing for interaction responsiveness it might be a good idea to keep the step mounted with:
+步骤内容将在关闭时自动卸载。 若您需要提供内容给搜索引擎,亦或是在您的模态框内渲染复杂的组件树,同时还要达到最佳的优化性能,您一般需要以下代码来装载模态框:
```jsx
diff --git a/docs/src/pages/components/switches/ColorSwitches.js b/docs/src/pages/components/switches/ColorSwitches.js
index acc47bf12b4934..c4201937913d72 100644
--- a/docs/src/pages/components/switches/ColorSwitches.js
+++ b/docs/src/pages/components/switches/ColorSwitches.js
@@ -1,17 +1,17 @@
import * as React from 'react';
import { alpha, styled } from '@material-ui/core/styles';
-import { green } from '@material-ui/core/colors';
+import { pink } from '@material-ui/core/colors';
import Switch from '@material-ui/core/Switch';
const GreenSwitch = styled(Switch)(({ theme }) => ({
'& .MuiSwitch-switchBase.Mui-checked': {
- color: green[600],
+ color: pink[600],
'&:hover': {
- backgroundColor: alpha(green[600], theme.palette.action.hoverOpacity),
+ backgroundColor: alpha(pink[600], theme.palette.action.hoverOpacity),
},
},
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
- backgroundColor: green[600],
+ backgroundColor: pink[600],
},
}));
@@ -22,6 +22,7 @@ export default function ColorSwitches() {
+
diff --git a/docs/src/pages/components/switches/ColorSwitches.tsx b/docs/src/pages/components/switches/ColorSwitches.tsx
index acc47bf12b4934..c4201937913d72 100644
--- a/docs/src/pages/components/switches/ColorSwitches.tsx
+++ b/docs/src/pages/components/switches/ColorSwitches.tsx
@@ -1,17 +1,17 @@
import * as React from 'react';
import { alpha, styled } from '@material-ui/core/styles';
-import { green } from '@material-ui/core/colors';
+import { pink } from '@material-ui/core/colors';
import Switch from '@material-ui/core/Switch';
const GreenSwitch = styled(Switch)(({ theme }) => ({
'& .MuiSwitch-switchBase.Mui-checked': {
- color: green[600],
+ color: pink[600],
'&:hover': {
- backgroundColor: alpha(green[600], theme.palette.action.hoverOpacity),
+ backgroundColor: alpha(pink[600], theme.palette.action.hoverOpacity),
},
},
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
- backgroundColor: green[600],
+ backgroundColor: pink[600],
},
}));
@@ -22,6 +22,7 @@ export default function ColorSwitches() {
+
diff --git a/docs/src/pages/components/switches/switches-de.md b/docs/src/pages/components/switches/switches-de.md
index 6d33765e6a7036..7a44b638b0d5fe 100644
--- a/docs/src/pages/components/switches/switches-de.md
+++ b/docs/src/pages/components/switches/switches-de.md
@@ -15,14 +15,30 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## Basic switches
-{{"demo": "pages/components/switches/Switches.js"}}
+{{"demo": "pages/components/switches/BasicSwitches.js"}}
-## Switch with FormControlLabel
+## Kontrollkästchen mit FormGroup
-`Switch` can be provided with a description thanks to the `FormControlLabel` component.
+You can provide a label to the `Switch` thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Size
+
+Use the `size` prop to change the size of the switch.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## Farbe (Color)
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Controlled
+
+You can control the switch with the `checked` and `onChange` props:
+
+{{"demo": "pages/components/switches/ControlledSwitches.js"}}
+
## Schalter mit FormGroup
`FormGroup` ist ein hilfreicher Wrapper zum Gruppieren von Auswahlsteuerungskomponenten, welcher eine einfachere API bietet. `FormGroup` ist ein hilfreicher Wrapper zum Gruppieren von Auswahlsteuerungskomponenten, welcher eine einfachere API bietet. (See: [When to use](#when-to-use)).
@@ -37,12 +53,6 @@ Hier einige Beispiele zum Anpassen der Komponente. Mehr dazu erfahren Sie auf de
🎨 Wenn Sie nach Inspiration suchen, sehen sie sich [MUI Treasury's Anpassungs-Beispiele](https://mui-treasury.com/styles/switch) an.
-## Größen
-
-Fancy smaller switches? Verwenden Sie die `size` Prop.
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## Etikettenplatzierung
Sie können die Platzierung des Etiketts ändern:
diff --git a/docs/src/pages/components/switches/switches-es.md b/docs/src/pages/components/switches/switches-es.md
index fa3f7b50d400b5..cce77aec32d9af 100644
--- a/docs/src/pages/components/switches/switches-es.md
+++ b/docs/src/pages/components/switches/switches-es.md
@@ -15,14 +15,30 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## Conmutadores Básicos
-{{"demo": "pages/components/switches/Switches.js"}}
+{{"demo": "pages/components/switches/BasicSwitches.js"}}
-## Switch with FormControlLabel
+## Checkbox con FormControlLabel
-`Switch` can be provided with a description thanks to the `FormControlLabel` component.
+You can provide a label to the `Switch` thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Tamaño
+
+Use the `size` prop to change the size of the switch.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## Color
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Controlled
+
+You can control the switch with the `checked` and `onChange` props:
+
+{{"demo": "pages/components/switches/ControlledSwitches.js"}}
+
## Switches with FormGroup
`FormGroup` es un contenedor muy útil usado para agrupar componentes de controles de selección que proporciona una API más sencilla. However, you are encouraged you to use [Checkboxes](/components/checkboxes/) instead if multiple related controls are required. However, you are encouraged you to use [Checkboxes](/components/checkboxes/) instead if multiple related controls are required.
@@ -37,12 +53,6 @@ Here are some examples of customizing the component. Puedes aprender más sobre
🎨 Si estás buscando inspiración, puedes mirar [los ejemplos de MUI Treasury](https://mui-treasury.com/styles/switch).
-## Tamaños
-
-Fancy smaller switches? Use the `size` prop.
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## Ubicación de Etiqueta
Puede cambiar la ubicación de la etiqueta:
diff --git a/docs/src/pages/components/switches/switches-fr.md b/docs/src/pages/components/switches/switches-fr.md
index fbeb6763284ed3..62d439dc58c45e 100644
--- a/docs/src/pages/components/switches/switches-fr.md
+++ b/docs/src/pages/components/switches/switches-fr.md
@@ -1,5 +1,5 @@
---
-title: React Switch component
+title: Composant React switch
components: Switch, FormControl, FormGroup, FormLabel, FormControlLabel
githubLabel: 'component: Switch'
materialDesign: 'https://material.io/components/selection-controls#switches'
@@ -9,7 +9,7 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
Switches toggle the state of a single setting on or off.
-[Switches](https://material.io/design/components/selection-controls.html#switches) are the preferred way to adjust settings on mobile. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label.
+[Switches](https://material.io/design/components/selection-controls.html#switches) sont le moyen préféré pour ajuster les paramètres sur mobile. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label. L'option que le switch contrôle, ainsi que l'état dans lequel il se trouve, doivent être clairement indiqués à partir de l'étiquette en ligne correspondante.
{{"component": "modules/components/ComponentLinkHeader.js"}}
@@ -17,15 +17,31 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
{{"demo": "pages/components/switches/Switches.js"}}
-## Switch with FormControlLabel
+## Checkbox avec FormControlLabel
`Switch` can be provided with a description thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Size
+
+Fancy smaller switches? Use the `size` prop.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## Couleur
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Checkbox personnalisée
+
+You can control the switch with the `checked` and `onChange` props:
+
+🎨 Si vous cherchez de l'inspiration, vous pouvez consulter les [exemples de personnalisation de MUI Treasury](https://mui-treasury.com/styles/switch).
+
## Switches with FormGroup
-`FormGroup` est un wrapper utile utilisé pour regrouper les composants de contrôles de sélection et qui fournit une API plus simple. `FormGroup` est un wrapper utile utilisé pour regrouper les composants de contrôles de sélection et qui fournit une API plus simple. (See: [When to use](#when-to-use)).
+`FormGroup` est un wrapper utile utilisé pour regrouper les composants de contrôles de sélection et qui fournit une API plus simple. Cependant, nous vous encourageons à utiliser des [cases à cocher](/components/checkboxes/) à la place si plusieurs switch sont requis. (See: [When to use](#when-to-use)).
{{"demo": "pages/components/switches/SwitchesGroup.js"}}
@@ -37,12 +53,6 @@ Here are some examples of customizing the component. Vous pouvez en savoir plus
🎨 Si vous cherchez de l'inspiration, vous pouvez consulter les [exemples de personnalisation de MUI Treasury](https://mui-treasury.com/styles/switch).
-## Tailles
-
-Fancy smaller switches? Use the `size` prop.
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## Emplacement du label
Vous pouvez changer l'emplacement du label:
diff --git a/docs/src/pages/components/switches/switches-ja.md b/docs/src/pages/components/switches/switches-ja.md
index 766dfc84a1912a..14ccecd6c36923 100644
--- a/docs/src/pages/components/switches/switches-ja.md
+++ b/docs/src/pages/components/switches/switches-ja.md
@@ -15,14 +15,30 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## Basic switches
-{{"demo": "pages/components/switches/Switches.js"}}
+{{"demo": "pages/components/switches/BasicSwitches.js"}}
-## Switch with FormControlLabel
+## FormGroupのCheckbox
-`Switch` can be provided with a description thanks to the `FormControlLabel` component.
+You can provide a label to the `Switch` thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Size
+
+Use the `size` prop to change the size of the switch.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## カラー
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Controlled
+
+You can control the switch with the `checked` and `onChange` props:
+
+{{"demo": "pages/components/switches/ControlledSwitches.js"}}
+
## FormGroupを使用したスイッチ
`FormGroup` は、より簡単なAPIを提供する選択コントロールコンポーネントをグループ化するために使用される便利なラッパーです。 `FormGroup` は、より簡単なAPIを提供する選択コントロールコンポーネントをグループ化するために使用される便利なラッパーです。 (See: [When to use](#when-to-use)).
@@ -31,18 +47,12 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## カスタマイズされたスイッチ (Customized switches)
-コンポーネントのカスタマイズの例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズの例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/switches/CustomizedSwitches.js"}}
🎨 インスピレーションを求めている場合は、 [MUI Treasury's customization examples](https://mui-treasury.com/styles/switch) を確認すると良いでしょう。
-## サイズ
-
-小型のスイッチが好きですか? `size`propを使用します。
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## ラベルの配置
ラベルの配置は自由に変更できます。
@@ -56,8 +66,8 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## アクセシビリティ
- It will render an element with the `checkbox` role not `switch` role since this role isn't widely supported yet. Please test first if assistive technology of your target audience supports this role properly. Then you can change the role with ``
-- ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。 ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。 ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。 ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。
-- ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。 ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。
+- ラジオボタン、チェックボックス、スイッチなどのすべてのフォームコントロールにラベルを付ける必要があります。 ほとんどの場合、 `` 要素([FormControlLabel](/api/form-control-label/))を使用して行われます。
+- ラベルを使用できない場合は、入力コンポーネントに直接属性を追加する必要があります。 この場合、追加の属性(例: `aria-label`, `aria-labelledby`, `title`)を経由して `inputProps` プロパティを追加します。
```jsx
diff --git a/docs/src/pages/components/switches/switches-pt.md b/docs/src/pages/components/switches/switches-pt.md
index afadd7260d54a4..4f6a33f917d49e 100644
--- a/docs/src/pages/components/switches/switches-pt.md
+++ b/docs/src/pages/components/switches/switches-pt.md
@@ -15,14 +15,30 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## Interruptores básicos
-{{"demo": "pages/components/switches/Switches.js"}}
+{{"demo": "pages/components/switches/BasicSwitches.js"}}
-## Interruptores com FormControlLabel
+## Caixas de seleção com FormGroup
-O componente `Switch` pode ser fornecido com uma descrição graças ao componente `FormControlLabel`.
+You can provide a label to the `Switch` thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Tamanho
+
+Use the `size` prop to change the size of the switch.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## Cor
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Controlled
+
+You can control the switch with the `checked` and `onChange` props:
+
+{{"demo": "pages/components/switches/ControlledSwitches.js"}}
+
## Interruptores com FormGroup
`FormGroup` é usado para agrupar componentes de seleção para facilitar o uso da API. `FormGroup` é usado para agrupar componentes de seleção para facilitar o uso da API. (Veja: [Quando usar](#when-to-use)).
@@ -37,12 +53,6 @@ Aqui estão alguns exemplos de customização do componente. Você pode aprender
🎨 Se você está procurando inspiração, você pode verificar [os exemplos de customização de MUI Treasury](https://mui-treasury.com/styles/switch).
-## Tamanhos
-
-Gosta de interruptores menores? Use a propriedade `size`.
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## Posicionamento do rótulo
Você pode alterar o posicionamento do rótulo:
diff --git a/docs/src/pages/components/switches/switches-ru.md b/docs/src/pages/components/switches/switches-ru.md
index ba5c8c9c0ae31c..4ce5ebe0451fe5 100644
--- a/docs/src/pages/components/switches/switches-ru.md
+++ b/docs/src/pages/components/switches/switches-ru.md
@@ -15,14 +15,30 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## Основные переключатели
-{{"demo": "pages/components/switches/Switches.js"}}
+{{"demo": "pages/components/switches/BasicSwitches.js"}}
-## Переключатель с FormControlLabel
+## Checkbox with FormGroup (Чекбоксы с FormGroup)
-`Switch` can be provided with a description thanks to the `FormControlLabel` component.
+You can provide a label to the `Switch` thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Size
+
+Use the `size` prop to change the size of the switch.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## Цвет
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Controlled
+
+You can control the switch with the `checked` and `onChange` props:
+
+{{"demo": "pages/components/switches/ControlledSwitches.js"}}
+
## Переключатели с FormGroup
`FormGroup` - это полезная обертка, используемая для группировки компонентов элементов управления выбором, она предоставляет более простой API. `FormGroup` - это полезная обертка, используемая для группировки компонентов элементов управления выбором, она предоставляет более простой API. (See: [When to use](#when-to-use)).
@@ -31,18 +47,12 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## Кастомизация переключателей
-Ниже находятся примеры кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находятся примеры кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/switches/CustomizedSwitches.js"}}
🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/switch).
-## Размеры
-
-Fancy smaller switches? Use the `size` prop.
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## Расположение метки
Расположение метки можно изменить:
@@ -51,7 +61,7 @@ Fancy smaller switches? Use the `size` prop.
## Бесплатно
-- [Чекбоксы. Switch (переключатели)](https://uxplanet.org/checkbox-vs-toggle-switch-7fc6e83f10b8)
+- [Checkboxes или Switches](https://uxplanet.org/checkbox-vs-toggle-switch-7fc6e83f10b8)
## Доступность
diff --git a/docs/src/pages/components/switches/switches-zh.md b/docs/src/pages/components/switches/switches-zh.md
index 8c55553971ecbb..312139a8a98035 100644
--- a/docs/src/pages/components/switches/switches-zh.md
+++ b/docs/src/pages/components/switches/switches-zh.md
@@ -15,14 +15,30 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
## 基本的开关
-{{"demo": "pages/components/switches/Switches.js"}}
+{{"demo": "pages/components/switches/BasicSwitches.js"}}
-## 带有 FormControlLabel 的开关
+## 标签
-借助 `FormControlLabel` 组件,`Switch`能够提供一些描述。
+You can provide a label to the `Switch` thanks to the `FormControlLabel` component.
{{"demo": "pages/components/switches/SwitchLabels.js"}}
+## Size 大小
+
+Use the `size` prop to change the size of the switch.
+
+{{"demo": "pages/components/switches/SwitchesSize.js"}}
+
+## Color 颜色
+
+{{"demo": "pages/components/switches/ColorSwitches.js"}}
+
+## Controlled
+
+You can control the switch with the `checked` and `onChange` props:
+
+{{"demo": "pages/components/switches/ControlledSwitches.js"}}
+
## 带有 FormGroup 的开关
`FormGroup` 会提供相对简单的 API 对选择控件进行分组。 但是,如果需要操作多个相关的控件,我们鼓励您使用 [Checkboxes](/components/checkboxes/) 来代替它。 (参见: [何时使用](#when-to-use))。
@@ -37,12 +53,6 @@ materialDesign: 'https://material.io/components/selection-controls#switches'
🎨 如果您还在寻找灵感,您可以查看一下 [MUI Treasury 自定义的例子](https://mui-treasury.com/components/button)。
-## 尺寸
-
-想用一些优雅的小开关? 试着使用 `size` 属性吧。
-
-{{"demo": "pages/components/switches/SwitchesSize.js"}}
-
## 标签放置
你可以更改标签的位置:
diff --git a/docs/src/pages/components/tables/tables-de.md b/docs/src/pages/components/tables/tables-de.md
index a9e9123d6feb9c..e86ad61c84e4c2 100644
--- a/docs/src/pages/components/tables/tables-de.md
+++ b/docs/src/pages/components/tables/tables-de.md
@@ -28,7 +28,9 @@ Eine Daten-Tabelle enthält oben eine Kopfzeile, welche die Spaltennamen auflist
The `Table` component has a close mapping to the native `` elements. This constraint makes building rich data tables challenging.
-The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused around handling a large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
## Einfache Tabelle
@@ -72,9 +74,9 @@ Die Eigenschaft `Action` der Komponente `TablePagination` ermöglicht die Implem
{{"demo": "pages/components/tables/CustomPaginationActionsTable.js", "bg": true}}
-## Fixed header
+## Sticky header
-An example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE11 support)
+Here is an example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tables/tables-es.md b/docs/src/pages/components/tables/tables-es.md
index 4bd4ba5c998125..aef90f195524e4 100644
--- a/docs/src/pages/components/tables/tables-es.md
+++ b/docs/src/pages/components/tables/tables-es.md
@@ -28,7 +28,9 @@ Una tabla de datos contiene una cabecera en la parte superior con los nombres de
The `Table` component has a close mapping to the native `` elements. This constraint makes building rich data tables challenging.
-The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused around handling a large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
## Tabla Sencilla
@@ -72,9 +74,9 @@ El atributo `Action`del componente `TablePagination` permite implementar accione
{{"demo": "pages/components/tables/CustomPaginationActionsTable.js", "bg": true}}
-## Fixed header
+## Sticky header
-An example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE11 support)
+Here is an example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tables/tables-fr.md b/docs/src/pages/components/tables/tables-fr.md
index 9abd31a14e1bc6..f94433b0ed2ea6 100644
--- a/docs/src/pages/components/tables/tables-fr.md
+++ b/docs/src/pages/components/tables/tables-fr.md
@@ -1,5 +1,5 @@
---
-title: React Table component
+title: Composant React Table
components: Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel
githubLabel: 'component: Table'
waiAria: 'https://www.w3.org/TR/wai-aria-practices/#table'
@@ -10,7 +10,7 @@ materialDesign: https://material.io/components/data-tables
Tables display sets of data. They can be fully customized.
-Tables display information in a way that's easy to scan, so that users can look for patterns and insights. Ils peuvent être intégrés au contenu principal, tel que les cartes. They can include:
+Les tables affichent des informations d'une manière facile à numériser, afin que les utilisateurs puissent rechercher des modèles et des aperçus. Ils peuvent être intégrés au contenu principal, tel que les cartes. Ils peuvent inclure :
- Une visualisation correspondante
- Menu principal
@@ -18,7 +18,7 @@ Tables display information in a way that's easy to scan, so that users can look
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## Structure
+## Tableau de base
Un exemple simple et sans fioritures.
@@ -30,6 +30,8 @@ The `Table` component has a close mapping to the native `` elements. This
The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused around handling a large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
+
## Tableau simple
Des cases à cocher doivent accompagner chaque ligne si l'utilisateur doit sélectionner ou manipuler des données.
@@ -54,13 +56,13 @@ Voici un exemple de personnalisation du composant. Vous pouvez en savoir plus da
It's possible to customise the options shown in the "Rows per page" select using the `rowsPerPageOptions` prop. You should either provide an array of:
-- **numbers**, each number will be used for the option's label and value.
+- **nombres**, chaque nombre sera utilisé pour l'étiquette et la valeur de l'option.
```jsx
```
-- **objects**, the `value` and `label` keys will be used respectively for the value and label of the option (useful for language strings such as 'All').
+- **objects**, `value`, et `label` des clés seront utilisées respectivement pour la valeur et l'étiquette de l'option (utile pour les chaînes de langue telles que 'Tout').
```jsx
@@ -74,13 +76,13 @@ La propriété `Action` du composant `TablePagination` permet l'implémentation
## Fixed header
-An example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE11 support)
+An example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE11 support) (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
-## Column grouping
+## Regroupement de colonnes
-You can group column headers by rendering multiple table rows inside a table head:
+Vous pouvez regrouper les en-têtes de colonne en affichant plusieurs lignes de la table dans une tête de la table :
```jsx
@@ -113,8 +115,8 @@ Dans l'exemple suivant, nous montrons comment utiliser [react-virtualized](https
(WAI tutorial: https://www.w3.org/WAI/tutorials/tables/)
-### Caption
+### Légende
-A caption functions like a heading for a table. Most screen readers announce the content of captions. Captions help users to find a table and understand what it's about and decide if they want to read it.
+A caption functions like a heading for a table. Most screen readers announce the content of captions. Les légendes aident les utilisateurs à trouver une table et à comprendre ce dont il est question et à décider s'ils veulent la lire.
{{"demo": "pages/components/tables/AcccessibleTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tables/tables-ja.md b/docs/src/pages/components/tables/tables-ja.md
index 39beaffbcc0101..d119ef9fa808db 100644
--- a/docs/src/pages/components/tables/tables-ja.md
+++ b/docs/src/pages/components/tables/tables-ja.md
@@ -28,7 +28,9 @@ Data tableの上部には、列名をリストするヘッダー行があり、
The `Table` component has a close mapping to the native `` elements. This constraint makes building rich data tables challenging.
-The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused around handling a large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
## Simple Table
@@ -46,7 +48,7 @@ An example of a table with expandable rows, revealing more information. It utili
## Customized tables
-コンポーネントのカスタマイズ例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズ例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/tables/CustomizedTables.js", "bg": true}}
@@ -72,9 +74,9 @@ It's possible to customise the options shown in the "Rows per page" select using
{{"demo": "pages/components/tables/CustomPaginationActionsTable.js", "bg": true}}
-## 固定ヘッダー
+## Sticky header
-An example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE11 support)
+Here is an example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tables/tables-pt.md b/docs/src/pages/components/tables/tables-pt.md
index dad2213a075260..f38f25156b2b63 100644
--- a/docs/src/pages/components/tables/tables-pt.md
+++ b/docs/src/pages/components/tables/tables-pt.md
@@ -28,7 +28,9 @@ Uma tabela de dados contém uma linha de cabeçalho no topo que lista os nomes d
O componente `Table` tem um mapeamento próximo dos elementos nativos de ``. Este requisito torna a construção de tabelas de dados ricas e desafiadora.
-O [componente `DataGrid`](/components/data-grid/) é projetado para situações de uso que focam em torno da manipulação de uma grande quantidade de dados tabulares. Enquanto vem com uma estrutura mais rígida, em troca, você ganha recursos poderosos.
+The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. Enquanto vem com uma estrutura mais rígida, em troca, você ganha recursos poderosos.
+
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
## Tabela Simples
@@ -72,9 +74,9 @@ A propriedade `Action` do componente `TablePagination` permite a implementação
{{"demo": "pages/components/tables/CustomPaginationActionsTable.js", "bg": true}}
-## Cabeçalho fixo
+## Sticky header
-Um exemplo de uma tabela com linhas roláveis e cabeçalhos de coluna fixos. Ela se aproveita da propriedade `stickyHeader`. (⚠️ sem suporte no IE11)
+Here is an example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tables/tables-ru.md b/docs/src/pages/components/tables/tables-ru.md
index 78e4c32a6c1e15..56d404cd958f15 100644
--- a/docs/src/pages/components/tables/tables-ru.md
+++ b/docs/src/pages/components/tables/tables-ru.md
@@ -28,7 +28,9 @@ Tables display information in a way that's easy to scan, so that users can look
The `Table` component has a close mapping to the native `` elements. This constraint makes building rich data tables challenging.
-The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused around handling a large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. While it comes with a more rigid structure, in exchange, you gain more powerful features.
+
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
## Простая таблица
@@ -46,7 +48,7 @@ The [`DataGrid` component](/components/data-grid/) is designed for use-cases tha
## Настраиваемые таблицы
-Ниже находится пример кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находится пример кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/tables/CustomizedTables.js", "bg": true}}
@@ -72,9 +74,9 @@ The [`DataGrid` component](/components/data-grid/) is designed for use-cases tha
{{"demo": "pages/components/tables/CustomPaginationActionsTable.js", "bg": true}}
-## Фиксированный заголовок
+## Sticky header
-Пример таблицы с прокручиваемыми строками и фиксированными заголовками столбцов. It leverages the `stickyHeader` prop. (⚠️ no IE11 support)
+Here is an example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tables/tables-zh.md b/docs/src/pages/components/tables/tables-zh.md
index b133ade478727d..809c5b6834b424 100644
--- a/docs/src/pages/components/tables/tables-zh.md
+++ b/docs/src/pages/components/tables/tables-zh.md
@@ -10,7 +10,7 @@ materialDesign: https://material.io/components/data-tables
表格展示数据组。 它们是完全可以自定义的。
-Tables display information in a way that's easy to scan, so that users can look for patterns and insights. 表格可以被内嵌在主要内容中,如 卡片(cards)。 表格可以被内嵌在主要内容中,如 卡片(cards)。 它们可以包括:
+表格以一种易于扫描的方式显示信息,以便用户洞察和寻找模型。 表格可以被内嵌在主要内容中,如 卡片(cards)。 它们可以包括:
- 对应的可视化效果
- 导航
@@ -28,7 +28,9 @@ Tables display information in a way that's easy to scan, so that users can look
`Table` 组件与原生 `` 元素存在密切关联。 这种限制条件导致要构建丰富的数据表格会变得很有挑战性。
-[`DataGrid` 组件](/components/data-grid/) 专为需要处理大量表格数据的情况而设计。 虽然它的结构相比之下不够灵活,但是有失必有得,牺牲灵活性来换取更强大的功能。
+The [`DataGrid` component](/components/data-grid/) is designed for use-cases that are focused on handling large amounts of tabular data. 虽然它的结构相比之下不够灵活,但是有失必有得,牺牲灵活性来换取更强大的功能。
+
+{{"demo": "pages/components/tables/DataTable.js", "bg": "inline"}}
## 紧凑型表格
@@ -52,7 +54,7 @@ Tables display information in a way that's easy to scan, so that users can look
### 自定义的分页选项
-通过 `rowsPerPageOptions` 属性,也可以自定义 "Rows per page" 显示的选择项。 你应该提供以下一种数组:
+你也可以使用 `rowsPerPageOptions` 属性来自定义 "Rows per page" 显示的选择项。 你应该提供以下一种数组:
- **数字(numbers)**,而每个数字用作为选择项的标签(label)和值(value)。
@@ -72,9 +74,9 @@ Tables display information in a way that's easy to scan, so that users can look
{{"demo": "pages/components/tables/CustomPaginationActionsTable.js", "bg": true}}
-## 固定表头
+## Sticky header
-一个具有可滚动行和固定表头的表格示例。 它是利用 `stickyHeader` 属性 实现的(不支持 IE11)。
+Here is an example of a table with scrollable rows and fixed column headers. It leverages the `stickyHeader` prop. (⚠️ no IE 11 support)
{{"demo": "pages/components/tables/StickyHeadTable.js", "bg": true}}
@@ -115,6 +117,6 @@ Tables display information in a way that's easy to scan, so that users can look
### Caption 字幕
-字幕能够充当表格的表头。 大多数屏幕阅读器能够宣读字幕的内容。 Captions help users to find a table and understand what it's about and decide if they want to read it.
+字幕能够充当表格的表头。 大多数屏幕阅读器能够宣读字幕的内容。 标题可以帮助用户找到表格,了解表格的内容,决定是否要阅读。
{{"demo": "pages/components/tables/AcccessibleTable.js", "bg": true}}
diff --git a/docs/src/pages/components/tabs/tabs-de.md b/docs/src/pages/components/tabs/tabs-de.md
index 9b3e484d2d8745..5fde4fd28491fe 100644
--- a/docs/src/pages/components/tabs/tabs-de.md
+++ b/docs/src/pages/components/tabs/tabs-de.md
@@ -16,25 +16,35 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#tabpanel'
## Einfache Tabs
-{{"demo": "pages/components/tabs/SimpleTabs.js", "bg": true}}
+A basic example with tab panels.
-{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/BasicTabs.js"}}
-### Umbrechen von Tab Beschriftungen
+## Experimental API
+
+`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+
+{{"demo": "pages/components/tabs/LabTabs.js"}}
+
+## Umbrechen von Tab Beschriftungen
-Lange Beschriftungen werden automatisch umgebrochen. Zu lange Beschriftungen sind allerdings nicht sichtbar und werden abgeschnitten (`overflow`).
+Lange Beschriftungen werden automatisch umgebrochen. If the label is too long for the tab, it will overflow, and the text will not be visible.
-{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
+{{"demo": "pages/components/tabs/TabsWrappedLabel.js"}}
-### Deaktivierter Tab
+## Colored tab
-Ein Tab kann durch die Eigenschaft `disabled` deaktiviert werden.
+{{"demo": "pages/components/tabs/ColorTabs.js"}}
-{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
+## Deaktivierter Tab
+
+A tab can be disabled by setting the `disabled` prop.
+
+{{"demo": "pages/components/tabs/DisabledTabs.js"}}
## Feste Tabs
-Feste Tabs sollten mit einer begrenzten Anzahl von Tabs verwendet werden, und wenn eine gleichmäßige Platzierung das Muskelgedächtnis verbessert.
+Fixed tabs should be used with a limited number of tabs, and when a consistent placement will aid muscle memory.
### Gesamte Breite
@@ -74,7 +84,7 @@ If you want to make sure the buttons are always visible, you should customize th
### Scrolltasten verhindern
-Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift-mousewheel, etc.)
+Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
{{"demo": "pages/components/tabs/ScrollableTabsButtonPrevent.js", "bg": true}}
@@ -82,7 +92,7 @@ Left and right scroll buttons are never be presented with `scrollButtons={false}
Hier ist ein Beispiel zum Anpassen der Komponente. Mehr dazu erfahren Sie auf der [Überschreibungsdokumentationsseite](/customization/how-to-customize/).
-{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/CustomizedTabs.js"}}
🎨 Wenn Sie nach Inspiration suchen, sehen sie sich [MUI Treasury's Anpassungs-Beispiele](https://mui-treasury.com/styles/tabs/) an.
@@ -94,19 +104,23 @@ Tab-Beschriftungen können entweder nur Symbole oder nur Text enthalten.
Note that you can restore the scrollbar with `visibleScrollbar`.
-## Nav-Tabs
+## Nav tabs
-Standardmäßig verwenden Registerkarten als `Button-` Element dargestellt, Sie können jedoch Ihr eigenes benutzerdefiniertes Tag oder Ihre eigene Komponente definieren. Here's an example of implementing tabbed navigation:
+By default, tabs use a `button` element, but you can provide your custom tag or component. Here's an example of implementing tabbed navigation:
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js"}}
-## Symbol-Tabs
+## Icon tabs
Tab-Beschriftungen können entweder nur Symbole oder nur Text enthalten.
-{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconTabs.js"}}
+
+{{"demo": "pages/components/tabs/IconLabelTabs.js"}}
+
+## Drittanbieter-Routing Bibliothek
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## Barrierefreiheit
@@ -125,19 +139,18 @@ The components implement keyboard navigation using the "manual activation" behav
#### Demo
-The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference, e.g. Arrow Left .
```jsx
/* Tabs where selection follows focus */
-/* Tabs where each tab needs to be selected manually */
-
```
-{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs1.js", "defaultCodeOpen": false}}
-## Experimental API
-
-`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/tabs/tabs-es.md b/docs/src/pages/components/tabs/tabs-es.md
index f71d08f99a36e3..561d21afc46f2c 100644
--- a/docs/src/pages/components/tabs/tabs-es.md
+++ b/docs/src/pages/components/tabs/tabs-es.md
@@ -16,25 +16,35 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#tabpanel'
## Simple Tabs
-{{"demo": "pages/components/tabs/SimpleTabs.js", "bg": true}}
+A basic example with tab panels.
-{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/BasicTabs.js"}}
-### Wrapped Labels
+## Experimental API
+
+`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+
+{{"demo": "pages/components/tabs/LabTabs.js"}}
+
+## Wrapped Labels
-Long labels will automatically wrap on tabs. If the label is too long for the tab, it will overflow and the text will not be visible.
+Long labels will automatically wrap on tabs. If the label is too long for the tab, it will overflow, and the text will not be visible.
-{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
+{{"demo": "pages/components/tabs/TabsWrappedLabel.js"}}
-### Disabled Tab
+## Colored tab
-A Tab can be disabled by setting `disabled` property.
+{{"demo": "pages/components/tabs/ColorTabs.js"}}
-{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
+## Disabled Tab
+
+A tab can be disabled by setting the `disabled` prop.
+
+{{"demo": "pages/components/tabs/DisabledTabs.js"}}
## Fixed Tabs
-Fixed tabs should be used with a limited number of tabs and when consistent placement will aid muscle memory.
+Fixed tabs should be used with a limited number of tabs, and when a consistent placement will aid muscle memory.
### Full width
@@ -74,7 +84,7 @@ If you want to make sure the buttons are always visible, you should customize th
### Prevent Scroll Buttons
-Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift-mousewheel, etc.)
+Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
{{"demo": "pages/components/tabs/ScrollableTabsButtonPrevent.js", "bg": true}}
@@ -82,7 +92,7 @@ Left and right scroll buttons are never be presented with `scrollButtons={false}
He aquí un ejemplo de personalización del componente. Puedes aprender más sobre esto en la [sección Personalizando Componentes de la documentación](/customization/how-to-customize/).
-{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/CustomizedTabs.js"}}
🎨 Si estás buscando inspiración, puedes mirar [los ejemplos de MUI Treasury](https://mui-treasury.com/styles/tabs/).
@@ -94,19 +104,23 @@ To make vertical tabs instead of default horizontal ones, there is `orientation=
Note that you can restore the scrollbar with `visibleScrollbar`.
-## Nav Tabs
+## Nav tabs
-By default tabs use a `button` element, but you can provide your own custom tag or component. Here's an example of implementing tabbed navigation:
+By default, tabs use a `button` element, but you can provide your custom tag or component. Here's an example of implementing tabbed navigation:
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js"}}
-## Icon Tabs
+## Icon tabs
Tab labels may be either all icons or all text.
-{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconTabs.js"}}
+
+{{"demo": "pages/components/tabs/IconLabelTabs.js"}}
+
+## Librería externa de routing
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## Accesibilidad
@@ -125,19 +139,18 @@ The components implement keyboard navigation using the "manual activation" behav
#### Demo
-The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference, e.g. Arrow Left .
```jsx
/* Tabs where selection follows focus */
-/* Tabs where each tab needs to be selected manually */
-
```
-{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs1.js", "defaultCodeOpen": false}}
-## Experimental API
-
-`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/tabs/tabs-fr.md b/docs/src/pages/components/tabs/tabs-fr.md
index ae5291a534a6d0..44a3d4e30644b4 100644
--- a/docs/src/pages/components/tabs/tabs-fr.md
+++ b/docs/src/pages/components/tabs/tabs-fr.md
@@ -20,15 +20,15 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#tabpanel'
{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
-### Wrapped Labels
+## Experimental API
-Long labels will automatically wrap on tabs. If the label is too long for the tab, it will overflow and the text will not be visible.
+`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
-### Disabled Tab
+## Scrollable Tabs
-A Tab can be disabled by setting `disabled` property.
+Long labels will automatically wrap on tabs. Long labels will automatically wrap on tabs.
{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
@@ -36,6 +36,16 @@ A Tab can be disabled by setting `disabled` property.
Fixed tabs should be used with a limited number of tabs and when consistent placement will aid muscle memory.
+## Disabled Tab
+
+A Tab can be disabled by setting `disabled` property.
+
+{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+
+## Nav Tabs
+
+The `centered` property should be used for larger views.
+
### Full width
The `variant="fullWidth"` property should be used for smaller views. This demo also uses [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) to animate the Tab transition, and allowing tabs to be swiped on touch devices.
@@ -48,15 +58,15 @@ The `centered` property should be used for larger views.
{{"demo": "pages/components/tabs/CenteredTabs.js", "bg": true}}
-## Scrollable Tabs
+## Icon Tabs
-### Automatic Scroll Buttons
+### Forced Scroll Buttons
Left and right scroll buttons will automatically be presented on desktop and hidden on mobile. (based on viewport width)
{{"demo": "pages/components/tabs/ScrollableTabsButtonAuto.js", "bg": true}}
-### Forced Scroll Buttons
+### Prevent Scroll Buttons
Left and right scroll buttons be presented (reserve space) regardless of the viewport width with `scrollButtons={true}` `allowScrollButtonsMobile`:
@@ -72,7 +82,7 @@ If you want to make sure the buttons are always visible, you should customize th
{{"demo": "pages/components/tabs/ScrollableTabsButtonVisible.js", "bg": true}}
-### Prevent Scroll Buttons
+### Automatic Scroll Buttons
Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift-mousewheel, etc.)
@@ -94,19 +104,23 @@ To make vertical tabs instead of default horizontal ones, there is `orientation=
Note that you can restore the scrollbar with `visibleScrollbar`.
-## Nav Tabs
+## Nav tabs
By default tabs use a `button` element, but you can provide your own custom tag or component. Here's an example of implementing tabbed navigation:
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
-## Icon Tabs
+## Icon tabs
Tab labels may be either all icons or all text.
{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+
+## Bibliothèque de routage tierce
+
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## Accessibilité
@@ -136,8 +150,9 @@ The following two demos only differ in their keyboard navigation behavior. Focus
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
-## Experimental API
-
-`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/tabs/tabs-ja.md b/docs/src/pages/components/tabs/tabs-ja.md
index 924dbaf1bfe56d..1e8df3fc246f35 100644
--- a/docs/src/pages/components/tabs/tabs-ja.md
+++ b/docs/src/pages/components/tabs/tabs-ja.md
@@ -16,29 +16,39 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#tabpanel'
## シンプルなタブ
-{{"demo": "pages/components/tabs/SimpleTabs.js", "bg": true}}
+A basic example with tab panels.
-{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/BasicTabs.js"}}
-### ラップされたラベル
+## Experimental API
+
+`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+
+{{"demo": "pages/components/tabs/LabTabs.js"}}
+
+## ラップされたラベル
-長いラベルはタブで自動的に折り返されます。 ラベルがタブに対して長すぎる場合、ラベルはオーバーフローし、テキストは表示されません。 長いラベルはタブで自動的に折り返されます。 ラベルがタブに対して長すぎる場合、ラベルはオーバーフローし、テキストは表示されません。 長いラベルはタブで自動的に折り返されます。 ラベルがタブに対して長すぎる場合、ラベルはオーバーフローし、テキストは表示されません。 長いラベルはタブで自動的に折り返されます。 ラベルがタブに対して長すぎる場合、ラベルはオーバーフローし、テキストは表示されません。 長いラベルはタブで自動的に折り返されます。 ラベルがタブに対して長すぎる場合、ラベルはオーバーフローし、テキストは表示されません。 長いラベルはタブで自動的に折り返されます。 ラベルがタブに対して長すぎる場合、ラベルはオーバーフローし、テキストは表示されません。
+長いラベルはタブで自動的に折り返されます。 If the label is too long for the tab, it will overflow, and the text will not be visible.
-{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
+{{"demo": "pages/components/tabs/TabsWrappedLabel.js"}}
-### 無効タブ
+## Colored tab
-`disabled` プロパティを設定すると、タブを無効にできます。
+{{"demo": "pages/components/tabs/ColorTabs.js"}}
-{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
+## 無効タブ
+
+A tab can be disabled by setting the `disabled` prop.
+
+{{"demo": "pages/components/tabs/DisabledTabs.js"}}
## 固定タブ
-固定タブは、限られた数のタブで、一定の配置が筋肉の記憶に役立つ場合に使用します。
+Fixed tabs should be used with a limited number of tabs, and when a consistent placement will aid muscle memory.
### 最大幅
-小さいビューには、 `variant = "fullWidth"` プロパティを使用する必要があります。 小さいビューには、 `variant = "fullWidth"` プロパティを使用する必要があります。 小さいビューには、 `variant = "fullWidth"` プロパティを使用する必要があります。 このデモでは、 [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) を使用してタブの遷移をアニメーション化し、タッチデバイスでタブをスワイプできるようにします。
+小さいビューには、 `variant = "fullWidth"` プロパティを使用する必要があります。 このデモでは、 [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) を使用してタブの遷移をアニメーション化し、タッチデバイスでタブをスワイプできるようにします。
{{"demo": "pages/components/tabs/FullWidthTabs.js", "bg": true}}
@@ -74,15 +84,15 @@ If you want to make sure the buttons are always visible, you should customize th
### スクロールボタンを防ぐ
-Left and right scroll buttons are never be presented with `scrollButtons={false}`. 左右のスクロールボタンは表示されません。 左右のスクロールボタンは表示されません。 左右のスクロールボタンは表示されません。 左右のスクロールボタンは表示されません。 左右のスクロールボタンは表示されません。 すべてのスクロールは、ユーザーエージェントのスクロールメカニズム(たとえば、左右のスワイプ、Shift-マウスホイールなど。)を使用して開始する必要があります。
+Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
{{"demo": "pages/components/tabs/ScrollableTabsButtonPrevent.js", "bg": true}}
## カスタマイズされたタブ
-コンポーネントのカスタマイズ例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズ例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
-{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/CustomizedTabs.js"}}
🎨 インスピレーションを求めている場合は、 [MUI Treasury's customization examples](https://mui-treasury.com/styles/tabs/) を確認すると良いでしょう。
@@ -94,19 +104,23 @@ Left and right scroll buttons are never be presented with `scrollButtons={false}
Note that you can restore the scrollbar with `visibleScrollbar`.
-## ナビゲーションタブ
+## Nav tabs
-デフォルトでは、タブは `button`要素を使用しますが、独自のカスタムタグまたはコンポーネントを提供できます。 次に、タブナビゲーションを実装する例を示します。 次に、タブナビゲーションを実装する例を示します。 次に、タブナビゲーションを実装する例を示します。 次に、タブナビゲーションを実装する例を示します。
+By default, tabs use a `button` element, but you can provide your custom tag or component. 次に、タブナビゲーションを実装する例を示します。
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js"}}
-## アイコンタブ
+## Icon tabs
タブラベルは、すべてアイコンまたはすべてテキストのいずれかです。
-{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconTabs.js"}}
+
+{{"demo": "pages/components/tabs/IconLabelTabs.js"}}
+
+## サードパーティ製ルーティングライブラリ
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## アクセシビリティ
@@ -125,19 +139,18 @@ The components implement keyboard navigation using the "manual activation" behav
#### Demo
-The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference, e.g. Arrow Left .
```jsx
/* Tabs where selection follows focus */
-/* Tabs where each tab needs to be selected manually */
-
```
-{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs1.js", "defaultCodeOpen": false}}
-## Experimental API
-
-`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/tabs/tabs-pt.md b/docs/src/pages/components/tabs/tabs-pt.md
index 16775629b08014..8a194837d22074 100644
--- a/docs/src/pages/components/tabs/tabs-pt.md
+++ b/docs/src/pages/components/tabs/tabs-pt.md
@@ -16,25 +16,35 @@ As [abas](https://material.io/design/components/tabs.html) organizam e permitem
## Abas simples
-{{"demo": "pages/components/tabs/SimpleTabs.js", "bg": true}}
+A basic example with tab panels.
-{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/BasicTabs.js"}}
-### Rótulos com quebras
+## API experimental
+
+O `@material-ui/lab` oferece componentes auxiliares que injetam propriedades para implementar abas acessíveis seguindo as [práticas de autoria da WAI-ARIA](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+
+{{"demo": "pages/components/tabs/LabTabs.js"}}
-Os rótulos longos serão quebrados automaticamente nas abas. Se o rótulo for muito longo para a aba, ele irá exceder e o texto não ficará visível.
+## Rótulos com quebras
-{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
+Os rótulos longos serão quebrados automaticamente nas abas. If the label is too long for the tab, it will overflow, and the text will not be visible.
-### Aba desativada
+{{"demo": "pages/components/tabs/TabsWrappedLabel.js"}}
-Uma aba pode ser desabilitada definindo a propriedade `disabled`.
+## Colored tab
-{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/ColorTabs.js"}}
+
+## Aba desativada
+
+A tab can be disabled by setting the `disabled` prop.
+
+{{"demo": "pages/components/tabs/DisabledTabs.js"}}
## Abas fixas
-As abas fixas devem ser usadas com um número limitado de abas e quando o posicionamento consistente ajudar na memorização.
+Fixed tabs should be used with a limited number of tabs, and when a consistent placement will aid muscle memory.
### Largura total
@@ -74,7 +84,7 @@ Se você quiser certificar-se de que os botões são sempre visíveis, você dev
### Impedir botões de rolagem
-Botões de rolagem da esquerda e direita nunca serão apresentados com `scrollButtons={false}`. Toda rolagem deve ser iniciada por meio de mecanismos de rolagem do agente do usuário (por exemplo, deslizar para a esquerda/direita, rolar scroll do mouse, etc.)
+Botões de rolagem da esquerda e direita nunca serão apresentados com `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
{{"demo": "pages/components/tabs/ScrollableTabsButtonPrevent.js", "bg": true}}
@@ -82,7 +92,7 @@ Botões de rolagem da esquerda e direita nunca serão apresentados com `scrollBu
Aqui está um exemplo de customização do componente. Você pode aprender mais sobre isso na [página de documentação de sobrescritas](/customization/how-to-customize/).
-{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/CustomizedTabs.js"}}
🎨 Se você está procurando inspiração, você pode verificar [os exemplos de customização de MUI Treasury](https://mui-treasury.com/styles/tabs/).
@@ -94,19 +104,23 @@ O rótulo das abas podem ser compostos apenas por ícones ou apenas por texto.
Note que você pode restaurar a barra de rolagem com `visibleScrollbar`.
-## Abas de navegação
+## Nav tabs
-Por padrão, as abas usam um elemento `button`, mas você pode fornecer sua própria tag customizada ou componente. Veja um exemplo de implementação da navegação por abas:
+By default, tabs use a `button` element, but you can provide your custom tag or component. Veja um exemplo de implementação da navegação por abas:
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js"}}
-## Abas com ícones
+## Icon tabs
O rótulo das abas podem ser compostos apenas por ícones ou apenas por texto.
-{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconTabs.js"}}
+
+{{"demo": "pages/components/tabs/IconLabelTabs.js"}}
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+## Biblioteca de roteamento de terceiros
+
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## Acessibilidade
@@ -121,23 +135,22 @@ Um exemplo para a implementação atual pode ser encontrado nas demonstrações
### Navegação por teclado
-Os componentes implementam a navegação do teclado usando o comportamento de "ativação manual". Se você quiser mudar para o comportamento "seleção segue automaticamente o foco" você deve definir `selectionFollowsFocus` no componente `Tabs`. As práticas de autoria da WAI-ARIA têm um guia detalhado sobre [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
+Os componentes implementam a navegação do teclado usando o comportamento de "ativação manual". Se você quiser mudar para o comportamento "seleção segue automaticamente o foco" você deve definir `selectionFollowsFocus` no componente `Tabs`. As práticas de autoria da WAI-ARIA têm um guia detalhado sobre [como decidir quando fazer a seleção seguir automaticamente o foco](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
#### Demonstração
-As duas demonstrações seguintes diferem apenas no seu comportamento de navegação por teclado. Foque em uma aba e navegue com as teclas de seta para notar a diferença.
+As duas demonstrações seguintes diferem apenas no seu comportamento de navegação por teclado. Focus a tab and navigate with arrow keys to notice the difference, e.g. Arrow Left .
```jsx
-/* Abas onde a seleção segue o foco */
+/* Tabs where selection follows focus */
-/* Abas onde cada aba precisa ser selecionada manualmente */
-
```
-{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
-
-## API experimental
+{{"demo": "pages/components/tabs/AccessibleTabs1.js", "defaultCodeOpen": false}}
-O `@material-ui/lab` oferece componentes auxiliares que injetam propriedades para implementar abas acessíveis seguindo as [práticas de autoria da WAI-ARIA](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/tabs/tabs-ru.md b/docs/src/pages/components/tabs/tabs-ru.md
index ecbdf477db539f..68bc49f553e704 100644
--- a/docs/src/pages/components/tabs/tabs-ru.md
+++ b/docs/src/pages/components/tabs/tabs-ru.md
@@ -16,25 +16,35 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#tabpanel'
## Простые вкладки
-{{"demo": "pages/components/tabs/SimpleTabs.js", "bg": true}}
+A basic example with tab panels.
-{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/BasicTabs.js"}}
-### Wrapped Labels
+## Experimental API
+
+`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+
+{{"demo": "pages/components/tabs/LabTabs.js"}}
+
+## Wrapped Labels
-Long labels will automatically wrap on tabs. If the label is too long for the tab, it will overflow and the text will not be visible.
+Long labels will automatically wrap on tabs. If the label is too long for the tab, it will overflow, and the text will not be visible.
-{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
+{{"demo": "pages/components/tabs/TabsWrappedLabel.js"}}
-### Отключённые вкладки
+## Colored tab
-Вкладка может быть отключена, установив параметр `disabled`.
+{{"demo": "pages/components/tabs/ColorTabs.js"}}
-{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
+## Отключённые вкладки
+
+A tab can be disabled by setting the `disabled` prop.
+
+{{"demo": "pages/components/tabs/DisabledTabs.js"}}
## Fixed Tabs
-Fixed tabs should be used with a limited number of tabs and when consistent placement will aid muscle memory.
+Fixed tabs should be used with a limited number of tabs, and when a consistent placement will aid muscle memory.
### Full width
@@ -74,15 +84,15 @@ If you want to make sure the buttons are always visible, you should customize th
### Prevent Scroll Buttons
-Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift-mousewheel, etc.)
+Left and right scroll buttons are never be presented with `scrollButtons={false}`. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
{{"demo": "pages/components/tabs/ScrollableTabsButtonPrevent.js", "bg": true}}
## Customized tabs
-Ниже находится пример кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находится пример кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
-{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/CustomizedTabs.js"}}
🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/tabs/).
@@ -94,19 +104,23 @@ To make vertical tabs instead of default horizontal ones, there is `orientation=
Note that you can restore the scrollbar with `visibleScrollbar`.
-## Nav Tabs
+## Nav tabs
-By default tabs use a `button` element, but you can provide your own custom tag or component. Here's an example of implementing tabbed navigation:
+By default, tabs use a `button` element, but you can provide your custom tag or component. Here's an example of implementing tabbed navigation:
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js"}}
-## Icon Tabs
+## Icon tabs
Tab labels may be either all icons or all text.
-{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconTabs.js"}}
+
+{{"demo": "pages/components/tabs/IconLabelTabs.js"}}
+
+## Сторонняя библиотека маршрутизации
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## Доступность
@@ -125,19 +139,18 @@ The components implement keyboard navigation using the "manual activation" behav
#### Demo
-The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference, e.g. Arrow Left .
```jsx
/* Tabs where selection follows focus */
-/* Tabs where each tab needs to be selected manually */
-
```
-{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs1.js", "defaultCodeOpen": false}}
-## Experimental API
-
-`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/tabs/tabs-zh.md b/docs/src/pages/components/tabs/tabs-zh.md
index ba76ae1c089eb5..e92873fd454d08 100644
--- a/docs/src/pages/components/tabs/tabs-zh.md
+++ b/docs/src/pages/components/tabs/tabs-zh.md
@@ -16,25 +16,35 @@ waiAria: 'https://www.w3.org/TR/wai-aria-practices/#tabpanel'
## 基础选项卡
-A basic example with no frills.
+A basic example with tab panels.
-{{"demo": "pages/components/tabs/BasicTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/BasicTabs.js"}}
-### 包装的标签
+## 实验性的 API
+
+遵循 [WAI-ARIA 项目实践](https://www.w3.org/TR/wai-aria-practices/#tabpanel),`@material-ui/lab` 提供了工具集组件,该组件通过注入属性的方式来实现无障碍设计的选项卡。
+
+{{"demo": "pages/components/tabs/LabTabs.js"}}
-对于那些比较长的标签,它们会被自动包装成选项卡。 如果标签超出了选项卡的长度,它则会溢出,并且文本会隐藏。
+## 包装的标签
-{{"demo": "pages/components/tabs/TabsWrappedLabel.js", "bg": true}}
+对于那些比较长的标签,它们会被自动包装成选项卡。 If the label is too long for the tab, it will overflow, and the text will not be visible.
-### 禁用选项卡
+{{"demo": "pages/components/tabs/TabsWrappedLabel.js"}}
-选项卡的 `disabled` 属性能将其设置为禁用状态。
+## Colored tab
-{{"demo": "pages/components/tabs/DisabledTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/ColorTabs.js"}}
+
+## 禁用选项卡
+
+A tab can be disabled by setting the `disabled` prop.
+
+{{"demo": "pages/components/tabs/DisabledTabs.js"}}
## 固定的选项卡
-固定的选项卡应与定量的选项卡一起使用,而将它们整齐放置则会有助于用户的肌肉记忆。
+Fixed tabs should be used with a limited number of tabs, and when a consistent placement will aid muscle memory.
### 全宽
@@ -74,7 +84,7 @@ A basic example with no frills.
### 永久隐藏滚动按钮
-你可以使用 `scrollButtons={false}` 属性来永远隐藏左右的滚动按钮。 所有的滚动比如通过用户代理的滚动机制来发起(例如,左右滑动,移动鼠标滑轮等等)。
+你可以使用 `scrollButtons={false}` 属性来永远隐藏左右的滚动按钮。 All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift mouse wheel, etc.)
{{"demo": "pages/components/tabs/ScrollableTabsButtonPrevent.js", "bg": true}}
@@ -82,7 +92,7 @@ A basic example with no frills.
以下是自定义组件的一个示例。 您可以在 [重写文档页面](/customization/how-to-customize/) 中了解更多有关此内容的信息。
-{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/CustomizedTabs.js"}}
🎨 如果您还在寻找灵感,您可以看看 [MUI Treasury 特别定制的一些例子](https://mui-treasury.com/styles/tabs/)。
@@ -94,19 +104,23 @@ A basic example with no frills.
请注意,你可以使用 `visibleScrollbar` 来恢复显示滚动条。
-## 导航选项卡
+## Nav tabs
-默认情况下,选项卡会使用 `按钮` 组件,但您也可以提供自定义的标签或组件。 下面是一个实现导航选项卡的例子:
+By default, tabs use a `button` element, but you can provide your custom tag or component. 下面是一个实现导航选项卡的例子:
-{{"demo": "pages/components/tabs/NavTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/NavTabs.js"}}
-## 图标选项卡
+## Icon tabs
选项卡的标签可以是所有的图标或者所有的文本。
-{{"demo": "pages/components/tabs/IconTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/IconTabs.js"}}
+
+{{"demo": "pages/components/tabs/IconLabelTabs.js"}}
-{{"demo": "pages/components/tabs/IconLabelTabs.js", "bg": true}}
+## Third-party routing library(第三方路由库)
+
+One frequent use case is to perform navigation on the client only, without an HTTP round-trip to the server. The `Tab` component provides the `component` prop to handle this use case. Here is a [more detailed guide](/guides/routing/#tabs).
## 无障碍设计
@@ -121,23 +135,22 @@ A basic example with no frills.
### 键盘导航
-该组件使用“手动激活”的行为来实现键盘导航。 如果你想切换到“选择自动跟随焦点”(selection automatically follows focus)的行为,你必须将 `selectionFollowsFocus` 传递给 `Tabs` 组件。 WAI-ARIA 项目实践中对 [如何决定什么时候选择自动跟随焦点](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus) 进行了详细的指导。
+该组件使用“手动激活”的行为来实现键盘导航。 如果你想切换到“选择自动跟随焦点”(selection automatically follows focus)的行为,你必须将 `selectionFollowsFocus` 传递给 `Tabs` 组件。 WAI-ARIA 项目实践中有一个详细的指南关于 [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus)。
#### 演示
-下面的两个演示只是在键盘导航行为上有所区别。 聚焦到其中一个选项卡,然后用方向键导航你就可以注意到其中的差异。
+下面的两个演示只是在键盘导航行为上有所区别。 Focus a tab and navigate with arrow keys to notice the difference, e.g. Arrow Left .
```jsx
-/* 那个跟随焦点的选项卡 */
+/* Tabs where selection follows focus */
-/* 需要手动选择选项卡中的每一个选项 */
-
```
-{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
-
-## 实验性的 API
+{{"demo": "pages/components/tabs/AccessibleTabs1.js", "defaultCodeOpen": false}}
-遵循 [WAI-ARIA 项目实践](https://www.w3.org/TR/wai-aria-practices/#tabpanel),`@material-ui/lab` 提供了工具集组件,该组件通过注入属性的方式来实现无障碍设计的选项卡。
+```jsx
+/* Tabs where each tab needs to be selected manually */
+
+```
-{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
+{{"demo": "pages/components/tabs/AccessibleTabs2.js", "defaultCodeOpen": false}}
diff --git a/docs/src/pages/components/text-fields/ColorTextFields.js b/docs/src/pages/components/text-fields/ColorTextFields.js
index 105e10d7ac40f4..085bb9f0c86c3f 100644
--- a/docs/src/pages/components/text-fields/ColorTextFields.js
+++ b/docs/src/pages/components/text-fields/ColorTextFields.js
@@ -12,22 +12,13 @@ export default function ColorTextFields() {
noValidate
autoComplete="off"
>
+
+
-
-
);
diff --git a/docs/src/pages/components/text-fields/ColorTextFields.tsx b/docs/src/pages/components/text-fields/ColorTextFields.tsx
index 105e10d7ac40f4..085bb9f0c86c3f 100644
--- a/docs/src/pages/components/text-fields/ColorTextFields.tsx
+++ b/docs/src/pages/components/text-fields/ColorTextFields.tsx
@@ -12,22 +12,13 @@ export default function ColorTextFields() {
noValidate
autoComplete="off"
>
+
+
-
-
);
diff --git a/docs/src/pages/components/text-fields/text-fields-de.md b/docs/src/pages/components/text-fields/text-fields-de.md
index 002aea3ee97ab3..475870a8873303 100644
--- a/docs/src/pages/components/text-fields/text-fields-de.md
+++ b/docs/src/pages/components/text-fields/text-fields-de.md
@@ -13,11 +13,9 @@ materialDesign: https://material.io/components/text-fields
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## TextField
+## Basic TextField
-Die `TextField` Wrapper-Komponente ist ein vollständiges Formularsteuerelement, das eine Beschriftung, Eingabe und Hilfetext enthält.
-
-It supports standard, outlined and filled styling.
+The `TextField` wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
@@ -31,13 +29,13 @@ Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc.
## Validierung
-The `error` prop toggles the error state, the `helperText` prop can then be used to provide feedback to the user about the error.
+The `error` prop toggles the error state. The `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
## Mehrzeilig
-The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `rowsMin` and `rowsMax` props to bound it.
+The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `minRows` and `maxRows` props to bound it.
{{"demo": "pages/components/text-fields/MultilineTextFields.js"}}
@@ -55,7 +53,7 @@ There are multiple ways to display an icon with a text field.
### Eingabeverzierungen
-The main way is with an `InputAdornment`. Sie können beispielsweise eine Symbolschaltfläche verwenden, um das Kennwort ein- oder auszublenden. This can be used to add a prefix, a suffix or an action to an input.
+The main way is with an `InputAdornment`. This can be used to add a prefix, a suffix, or an action to an input. This can be used to add a prefix, a suffix or an action to an input.
{{"demo": "pages/components/text-fields/InputAdornments.js"}}
@@ -69,15 +67,19 @@ The `filled` variant input height can be further reduced by rendering the label
{{"demo": "pages/components/text-fields/TextFieldHiddenLabel.js"}}
-## Layout
+## Margin
+
+The `margin` prop can be used to alter the vertical spacing of the text field. Using `none` (default) doesn't apply margins to the `FormControl` whereas `dense` and `normal` do.
+
+{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
-`dense` and `normal` alter other styles to meet the specification. `margin` prop can be used to alter the vertical spacing of inputs. Using `none` (default) will not apply margins to the `FormControl`, whereas `dense` and `normal` will.
+## Gesamte Breite
`fullWidth` can be used to make the input take up the full width of its container.
-{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
+{{"demo": "pages/components/text-fields/FullWidthTextField.js"}}
-## Uncontrolled vs Controlled
+## Uncontrolled vs. Controlled
The component can be controlled or uncontrolled.
@@ -87,7 +89,7 @@ The component can be controlled or uncontrolled.
Das `Textfeld` besteht aus kleineren Komponenten ( [`FormControl`](/api/form-control/), [`Input`](/api/input/), [`FilledInput`](/api/filled-input/), [`InputLabel`](/api/input-label/), [`OutlinedInput`](/api/outlined-input/), und [`FormHelperText`](/api/form-helper-text/) ) welche Sie direkt nutzen können, um Ihre Formulareingaben erheblich anzupassen.
-Möglicherweise haben Sie auch festgestellt, dass einige native HTML-Eingabeeigenschaften in der Komponente `TextField` fehlen. Das war Absicht. Die Komponente kümmert sich um die am häufigsten verwendeten Eigenschaften. Anschließend muss der Benutzer die darunter liegende Komponente verwenden, die in der folgenden Demo gezeigt wird. Sie können jedoch `inputProps` (und `InputProps`, `InputLabelProps` Eigenschaften) verwenden, wenn Sie einiges an Boilerplate vermeiden möchten.
+Möglicherweise haben Sie auch festgestellt, dass einige native HTML-Eingabeeigenschaften in der Komponente `TextField` fehlen. Das war Absicht. The component takes care of the most used properties. Then, it's up to the user to use the underlying component shown in the following demo. Sie können jedoch `inputProps` (und `InputProps`, `InputLabelProps` Eigenschaften) verwenden, wenn Sie einiges an Boilerplate vermeiden möchten.
{{"demo": "pages/components/text-fields/ComposedTextField.js"}}
@@ -107,12 +109,47 @@ Hier einige Beispiele zum Anpassen der Komponente. Mehr dazu erfahren Sie auf de
{{"demo": "pages/components/text-fields/CustomizedInputs.js"}}
-Die Anpassung endet nicht bei CSS. Sie können Komposition verwenden, um benutzerdefinierte Komponenten zu erstellen und Ihrer App ein einzigartiges Gefühl zu verleihen. Nachfolgend ein Beispiel mit der [`InputBase`](/api/input-base/) Komponente, die von Google Maps inspiriert wurde.
+Customization does not stop at CSS. You can use composition to build custom components and give your app a unique feel. Nachfolgend ein Beispiel mit der [`InputBase`](/api/input-base/) Komponente, die von Google Maps inspiriert wurde.
{{"demo": "pages/components/text-fields/CustomizedInputBase.js", "bg": true}}
🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/text-field).
+## `useFormControl`
+
+For advanced customization use cases, a `useFormControl()` hook is exposed. This hook returns the context value of the parent `FormControl` component.
+
+**API**
+
+```jsx
+import { useFormControl } from '@material-ui/core/FormControl';
+```
+
+**Rückgabewerte**
+
+`value` (_object_):
+
+- `value.adornedStart` (_bool_): Indicate whether the child `Input` or `Select` component has a start adornment.
+- `value.setAdornedStart` (_func_): Setter function for `adornedStart` state value.
+- `value.color` (_string_): The theme color is being used, inherited from `FormControl` `color` prop .
+- `value.disabled` (_bool_): Indicate whether the component is being displayed in a disabled state, inherited from `FormControl` `disabled` prop.
+- `value.error` (_bool_): Indicate whether the component is being displayed in an error state, inherited from `FormControl` `error` prop
+- `value.filled` (_bool_): Indicate whether input is filled
+- `value.focused` (_bool_): Indicate whether the component and its children are being displayed in a focused state
+- `value.fullWidth` (_bool_): Indicate whether the component is taking up the full width of its container, inherited from `FormControl` `fullWidth` prop
+- `value.hiddenLabel` (_bool_): Indicate whether the label is being hidden, inherited from `FormControl` `hiddenLabel` prop
+- `value.required` (_bool_): Indicate whether the label is indicating that the input is required input, inherited from the `FormControl` `required` prop
+- `value.size` (_string_): The size of the component, inherited from the `FormControl` `size` prop
+- `value.variant` (_string_): The variant is being used by the `FormControl` component and its children, inherited from `FormControl` `variant` prop
+- `value.onBlur` (_func_): Should be called when the input is blurred
+- `value.onFocus` (_func_): Should be called when the input is focused
+- `value.onEmpty` (_func_): Should be called when the input is emptied
+- `value.onFilled` (_func_): Should be called when the input is filled
+
+**Beispiel**
+
+{{"demo": "pages/components/text-fields/UseFormControl.js"}}
+
## Einschränkungen
### Shrink
@@ -135,13 +172,13 @@ oder
### Floating label
-The floating label is absolutely positioned, it won't impact the layout of the page. You need to make sure that the input is larger than the label to display correctly.
+The floating label is absolutely positioned. It won't impact the layout of the page. Make sure that the input is larger than the label to display correctly.
### type="number"
Inputs of type="number" have potential usability issues:
-- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others
+- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others and silently discarding others
- Wenn Sie die Komponente zusammenstellen:
and more - see [this article](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) by the GOV.UK Design System team for a more detailed explanation.
@@ -233,7 +270,7 @@ In order for the text field to be accessible, **the input should be linked to th
## Ergänzende Projekte
-Für fortgeschrittenere Anwendungsfälle können Ihnen folgende Projekte helfen:
+For more advanced use cases, you might be able to take advantage of:
- [mui-rff](https://github.com/lookfirst/mui-rff) Bindings for using Material-UI with [React Final Form](https://final-form.org/react).
- [formik-material-ui](https://github.com/stackworx/formik-material-ui): Bindings for using Material-UI with [formik](https://jaredpalmer.com/formik).
diff --git a/docs/src/pages/components/text-fields/text-fields-es.md b/docs/src/pages/components/text-fields/text-fields-es.md
index 8cb84e531dca4f..c76649dd3e52ac 100644
--- a/docs/src/pages/components/text-fields/text-fields-es.md
+++ b/docs/src/pages/components/text-fields/text-fields-es.md
@@ -13,15 +13,13 @@ materialDesign: https://material.io/components/text-fields
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## TextField
+## Basic TextField
-El componente `TextField` es un control de formulario completo, incluyendo una etiqueta, el campo de texto y texto de ayuda.
-
-Soporta estilos "Standard", "Outlined" y "Filled".
+The `TextField` wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
-**Note:** The standard variant of the `TextField` is no longer documented in the [Material Design guidelines](https://material.io/) ([here's why](https://medium.com/google-design/the-evolution-of-material-designs-text-fields-603688b3fe03)), but Material-UI will continue to support it.
+**Nota:** La variante estándar de `TextField` no esta mas documentada en [guía Material Design](https://material.io/) ([Aquí esta el por que](https://medium.com/google-design/the-evolution-of-material-designs-text-fields-603688b3fe03)), pero Material-UI continuara soportándolo.
## Propiedades del Form
@@ -31,13 +29,13 @@ Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc.
## Validación
-The `error` prop toggles the error state, the `helperText` prop can then be used to provide feedback to the user about the error.
+The `error` prop toggles the error state. The `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
## Multiline
-The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `rowsMin` and `rowsMax` props to bound it.
+The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `minRows` and `maxRows` props to bound it.
{{"demo": "pages/components/text-fields/MultilineTextFields.js"}}
@@ -55,7 +53,7 @@ There are multiple ways to display an icon with a text field.
### Adornos de campos de texto
-The main way is with an `InputAdornment`. Por ejemplo, puedes usar un botón de icono para esconder o revelar una contraseña. This can be used to add a prefix, a suffix or an action to an input.
+The main way is with an `InputAdornment`. This can be used to add a prefix, a suffix, or an action to an input. This can be used to add a prefix, a suffix or an action to an input.
{{"demo": "pages/components/text-fields/InputAdornments.js"}}
@@ -69,15 +67,19 @@ The `filled` variant input height can be further reduced by rendering the label
{{"demo": "pages/components/text-fields/TextFieldHiddenLabel.js"}}
-## Disposición
+## Margin
+
+The `margin` prop can be used to alter the vertical spacing of the text field. Using `none` (default) doesn't apply margins to the `FormControl` whereas `dense` and `normal` do.
+
+{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
-`dense` and `normal` alter other styles to meet the specification. `margin` prop can be used to alter the vertical spacing of inputs. Using `none` (default) will not apply margins to the `FormControl`, whereas `dense` and `normal` will.
+## Full width
`fullWidth` can be used to make the input take up the full width of its container.
-{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
+{{"demo": "pages/components/text-fields/FullWidthTextField.js"}}
-## Uncontrolled vs Controlled
+## Uncontrolled vs. Controlled
The component can be controlled or uncontrolled.
@@ -87,7 +89,7 @@ The component can be controlled or uncontrolled.
El componente `TextField` incluye y usa subcomponentes ( [`FormControl`](/api/form-control/), [`Input`](/api/input/), [`FilledInput`](/api/filled-input/), [`InputLabel`](/api/input-label/), [`OutlinedInput`](/api/outlined-input/) y [`FormHelperText`](/api/form-helper-text/) ) que pueden ser usados directamente para personalizar campos de ingreso de texto de manera sustancial.
-Puede que también hayas notado que algunas propiedades nativas de input HTML no están presentes en el componente `TextField`. Esto es a propósito. El componente se encarga de programar la mayoría de las propiedades más usadas, luego depende del usuario programar las propiedades que se muestran en la siguiente demo. Aun así, se puede utilizar `inputProps` (y las propiedades `InputProps` e `InputLabelProps`) para personalizar y evitar el código boilerplate.
+Puede que también hayas notado que algunas propiedades nativas de input HTML no están presentes en el componente `TextField`. Esto es a propósito. The component takes care of the most used properties. Then, it's up to the user to use the underlying component shown in the following demo. Aun así, se puede utilizar `inputProps` (y las propiedades `InputProps` e `InputLabelProps`) para personalizar y evitar el código boilerplate.
{{"demo": "pages/components/text-fields/ComposedTextField.js"}}
@@ -107,12 +109,47 @@ Here are some examples of customizing the component. Puedes aprender más sobre
{{"demo": "pages/components/text-fields/CustomizedInputs.js"}}
-La personalización no se limita a usar CSS, también puedes usar una composición de componentes personalizados para darle a tu aplicación un estilo único. A continuación sigue un ejemplo del uso del componente [`InputBase`](/api/input-base/), inspirado por Google Maps.
+Customization does not stop at CSS. You can use composition to build custom components and give your app a unique feel. A continuación sigue un ejemplo del uso del componente [`InputBase`](/api/input-base/), inspirado por Google Maps.
{{"demo": "pages/components/text-fields/CustomizedInputBase.js", "bg": true}}
🎨 Si buscas un poco de inspiración, puedes visitar [MUI Treasury's ejemplos de customizacion](https://mui-treasury.com/styles/text-field).
+## `useFormControl`
+
+For advanced customization use cases, a `useFormControl()` hook is exposed. This hook returns the context value of the parent `FormControl` component.
+
+**API**
+
+```jsx
+import { useFormControl } from '@material-ui/core/FormControl';
+```
+
+**Regresa**
+
+`value` (_object_):
+
+- `value.adornedStart` (_bool_): Indicate whether the child `Input` or `Select` component has a start adornment.
+- `value.setAdornedStart` (_func_): Setter function for `adornedStart` state value.
+- `value.color` (_string_): The theme color is being used, inherited from `FormControl` `color` prop .
+- `value.disabled` (_bool_): Indicate whether the component is being displayed in a disabled state, inherited from `FormControl` `disabled` prop.
+- `value.error` (_bool_): Indicate whether the component is being displayed in an error state, inherited from `FormControl` `error` prop
+- `value.filled` (_bool_): Indicate whether input is filled
+- `value.focused` (_bool_): Indicate whether the component and its children are being displayed in a focused state
+- `value.fullWidth` (_bool_): Indicate whether the component is taking up the full width of its container, inherited from `FormControl` `fullWidth` prop
+- `value.hiddenLabel` (_bool_): Indicate whether the label is being hidden, inherited from `FormControl` `hiddenLabel` prop
+- `value.required` (_bool_): Indicate whether the label is indicating that the input is required input, inherited from the `FormControl` `required` prop
+- `value.size` (_string_): The size of the component, inherited from the `FormControl` `size` prop
+- `value.variant` (_string_): The variant is being used by the `FormControl` component and its children, inherited from `FormControl` `variant` prop
+- `value.onBlur` (_func_): Should be called when the input is blurred
+- `value.onFocus` (_func_): Should be called when the input is focused
+- `value.onEmpty` (_func_): Should be called when the input is emptied
+- `value.onFilled` (_func_): Should be called when the input is filled
+
+**Ejemplo**
+
+{{"demo": "pages/components/text-fields/UseFormControl.js"}}
+
## Limitaciones
### Shrink
@@ -135,13 +172,13 @@ o
### Floating label
-The floating label is absolutely positioned, it won't impact the layout of the page. You need to make sure that the input is larger than the label to display correctly.
+The floating label is absolutely positioned. It won't impact the layout of the page. Make sure that the input is larger than the label to display correctly.
### type="number"
Inputs of type="number" have potential usability issues:
-- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others
+- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others and silently discarding others
- Si se está componiendo el componente:
and more - see [this article](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) by the GOV. UK Design System team for a more detailed explanation.
@@ -233,7 +270,7 @@ In order for the text field to be accessible, **the input should be linked to th
## Proyectos relacionados
-Para usos más avanzados tal vez puedas aprovercharte de:
+For more advanced use cases, you might be able to take advantage of:
- [mui-rff](https://github.com/lookfirst/mui-rff) Bindings for using Material-UI with [React Final Form](https://final-form.org/react).
- [formik-material-ui](https://github.com/stackworx/formik-material-ui): Bindings for using Material-UI with [formik](https://jaredpalmer.com/formik).
diff --git a/docs/src/pages/components/text-fields/text-fields-fr.md b/docs/src/pages/components/text-fields/text-fields-fr.md
index 5d77298e96d20e..a11152228b32a7 100644
--- a/docs/src/pages/components/text-fields/text-fields-fr.md
+++ b/docs/src/pages/components/text-fields/text-fields-fr.md
@@ -15,9 +15,7 @@ materialDesign: https://material.io/components/text-fields
## TextField
-Le composant d'encapsulation `TextField` est un contrôle de formulaire complet comprenant une étiquette, une entrée et un texte d'aide.
-
-It supports standard, outlined and filled styling.
+Le composant d'encapsulation `TextField` est un contrôle de formulaire complet comprenant une étiquette, une entrée et un texte d'aide. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
@@ -25,13 +23,13 @@ It supports standard, outlined and filled styling.
## Form props
-Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc. as well as a `helperText` which is used to give context about a field's input, such as how the input will be used.
+**Note:** The standard variant of the `TextField` is no longer documented in the [Material Design guidelines](https://material.io/) ([here's why](https://medium.com/google-design/the-evolution-of-material-designs-text-fields-603688b3fe03)), but Material-UI will continue to support it.
{{"demo": "pages/components/text-fields/FormPropsTextFields.js"}}
## Validation
-The `error` prop toggles the error state, the `helperText` prop can then be used to provide feedback to the user about the error.
+The `error` prop toggles the error state. The `error` prop toggles the error state, the `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
@@ -55,7 +53,7 @@ There are multiple ways to display an icon with a text field.
### Ornements d'input
-The main way is with an `InputAdornment`. Par exemple, vous pouvez utiliser un bouton icône pour masquer ou révéler le mot de passe. This can be used to add a prefix, a suffix or an action to an input.
+The main way is with an `InputAdornment`. This can be used to add a prefix, a suffix or an action to an input. This can be used to add a prefix, a suffix or an action to an input.
{{"demo": "pages/components/text-fields/InputAdornments.js"}}
@@ -71,13 +69,17 @@ The `filled` variant input height can be further reduced by rendering the label
## Disposition
-`dense` and `normal` alter other styles to meet the specification. `margin` prop can be used to alter the vertical spacing of inputs. Using `none` (default) will not apply margins to the `FormControl`, whereas `dense` and `normal` will.
+`margin` prop can be used to alter the vertical spacing of inputs. Using `none` (default) will not apply margins to the `FormControl`, whereas `dense` and `normal` will.
+
+{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
+
+## Full width
`fullWidth` can be used to make the input take up the full width of its container.
-{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
+{{"demo": "pages/components/text-fields/FullWidthTextField.js"}}
-## Uncontrolled vs Controlled
+## Composants
The component can be controlled or uncontrolled.
@@ -87,7 +89,7 @@ The component can be controlled or uncontrolled.
`TextField` est composé d'éléments plus petits ( [`FormControl`](/api/form-control/), [`Input`](/api/input/), [`FilledInput`](/api/filled-input/), [`InputLabel`](/api/input-label/), [`OutlinedInput`](/api/outlined-input/), et [`FormHelperText`](/api/form-helper-text/) ) que vous pouvez utiliser directement pour personnaliser de manière significative vos entrées de formulaire.
-Vous avez peut-être également remarqué que certaines propriétés d'entrée HTML natives sont absentes du composant `TextField`. C'est intentionnel. Le composant prend en charge les propriétés les plus utilisées, puis il appartient à l'utilisateur d'utiliser le composant sous-jacent présenté dans la démonstration suivante. Néanmoins, vous pouvez utiliser `inputProps` (et `InputProps`, `InputLabelProps` propriétés) pour aller plus vite.
+Vous avez peut-être également remarqué que certaines propriétés d'entrée HTML natives sont absentes du composant `TextField`. C'est intentionnel. The component takes care of the most used properties. Le composant prend en charge les propriétés les plus utilisées, puis il appartient à l'utilisateur d'utiliser le composant sous-jacent présenté dans la démonstration suivante. Néanmoins, vous pouvez utiliser `inputProps` (et `InputProps`, `InputLabelProps` propriétés) pour aller plus vite.
{{"demo": "pages/components/text-fields/ComposedTextField.js"}}
@@ -107,12 +109,47 @@ Here are some examples of customizing the component. Vous pouvez en savoir plus
{{"demo": "pages/components/text-fields/CustomizedInputs.js"}}
-La personnalisation ne se limite pas aux CSS, vous pouvez utiliser la composition pour créer des composants personnalisés et donner à votre application une sensation unique. Voici un exemple utilisant le composant [`InputBase`](/api/input-base/), inspiré de Google Maps.
+Customization does not stop at CSS. La personnalisation ne se limite pas aux CSS, vous pouvez utiliser la composition pour créer des composants personnalisés et donner à votre application une sensation unique. Voici un exemple utilisant le composant [`InputBase`](/api/input-base/), inspiré de Google Maps.
{{"demo": "pages/components/text-fields/CustomizedInputBase.js", "bg": true}}
🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/text-field).
+## `useFormControl`
+
+For advanced customization use cases, a `useFormControl()` hook is exposed. This hook returns the context value of the parent `FormControl` component.
+
+**API**
+
+```jsx
+import { useFormControl } from '@material-ui/core/FormControl';
+```
+
+**Valeur de retour**
+
+`value` (_Object_):
+
+- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others
+- Si vous composez le composant:
+- `value.color` (_string_): The theme color is being used, inherited from `FormControl` `color` prop .
+- `value.disabled` (_bool_): Indicate whether the component is being displayed in a disabled state, inherited from `FormControl` `disabled` prop.
+- `value.error` (_bool_): Indicate whether the component is being displayed in an error state, inherited from `FormControl` `error` prop
+- `value.filled` (_bool_): Indicate whether input is filled
+- `value.focused` (_bool_): Indicate whether the component and its children are being displayed in a focused state
+- `value.fullWidth` (_bool_): Indicate whether the component is taking up the full width of its container, inherited from `FormControl` `fullWidth` prop
+- `value.hiddenLabel` (_bool_): Indicate whether the label is being hidden, inherited from `FormControl` `hiddenLabel` prop
+- `value.required` (_bool_): Indicate whether the label is indicating that the input is required input, inherited from the `FormControl` `required` prop
+- `value.size` (_string_): The size of the component, inherited from the `FormControl` `size` prop
+- `value.variant` (_string_): The variant is being used by the `FormControl` component and its children, inherited from `FormControl` `variant` prop
+- `value.onBlur` (_func_): Should be called when the input is blurred
+- `value.onFocus` (_func_): Should be called when the input is focused
+- `value.onEmpty` (_func_): Should be called when the input is emptied
+- `value.onFilled` (_func_): Should be called when the input is filled
+
+**Exemple**
+
+{{"demo": "pages/components/text-fields/UseFormControl.js"}}
+
## Limites
### Shrink
@@ -135,13 +172,13 @@ ou
### Floating label
-The floating label is absolutely positioned, it won't impact the layout of the page. You need to make sure that the input is larger than the label to display correctly.
+The floating label is absolutely positioned. The floating label is absolutely positioned, it won't impact the layout of the page. You need to make sure that the input is larger than the label to display correctly.
### type="number"
Inputs of type="number" have potential usability issues:
-- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others
+- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others and silently discarding others
- Si vous composez le composant:
and more - see [this article](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) by the GOV.UK Design System team for a more detailed explanation.
diff --git a/docs/src/pages/components/text-fields/text-fields-ja.md b/docs/src/pages/components/text-fields/text-fields-ja.md
index 3c680b4f3d1574..022654f20ac418 100644
--- a/docs/src/pages/components/text-fields/text-fields-ja.md
+++ b/docs/src/pages/components/text-fields/text-fields-ja.md
@@ -9,35 +9,33 @@ materialDesign: https://material.io/components/text-fields
Text fieldを使用すると、ユーザーはテキストを入力および編集できます。
-[テキストフィールド](https://material.io/design/components/text-fields.html) 使用すると、ユーザーはUIにテキストを入力できます。 通常、フォームとダイアログに表示されます。
+テキストフィールドを使用すると、UIにテキストを入力できます。 通常、フォームとダイアログに表示されます。
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## TextField
+## Basic TextField
-`TextField` ラッパーコンポーネントは、ラベル、入力、およびヘルプテキストを含む完全なフォームコントロールです。
-
-It supports standard, outlined and filled styling.
+The `TextField` wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
-**Note:** The standard variant of the `TextField` is no longer documented in the [Material Design guidelines](https://material.io/) ([here's why](https://medium.com/google-design/the-evolution-of-material-designs-text-fields-603688b3fe03)), but Material-UI will continue to support it.
+**注:** `TextField`のstandard variantは [Material Design guidelines](https://material.io/) に記載されなくなりましたが([理由はこちら](https://medium.com/google-design/the-evolution-of-material-designs-text-fields-603688b3fe03))、 Material-UI は引き続きサポートします。
## Form props
-Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc. as well as a `helperText` which is used to give context about a field's input, such as how the input will be used.
+標準的なフォームの属性がサポートされています(`required`, `disabled`, `type` など)。入力がどのように使用されるかなど、フィールドの入力に関するコンテキストを与えるために使用される `helperText` も同様です。
{{"demo": "pages/components/text-fields/FormPropsTextFields.js"}}
-## Validation
+## バリデーション
-The `error` prop toggles the error state, the `helperText` prop can then be used to provide feedback to the user about the error.
+The `error` prop toggles the error state. The `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
## Multiline
-The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `rowsMin` and `rowsMax` props to bound it.
+The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). `rows` プロパティが設定されていない限り、テキストフィールドの高さはそのコンテンツと動的に一致します ( [TextareaAutosize](/components/textarea-autosize/) を使用します)。 You can use the `minRows` and `maxRows` props to bound it.
{{"demo": "pages/components/text-fields/MultilineTextFields.js"}}
@@ -55,31 +53,35 @@ There are multiple ways to display an icon with a text field.
### 入力装飾 (Input Adornments)
-The main way is with an `InputAdornment`. たとえば、アイコンボタンを使用してパスワードを表示または非表示にすることができます。 たとえば、アイコンボタンを使用してパスワードを表示または非表示にすることができます。 たとえば、アイコンボタンを使用してパスワードを表示または非表示にすることができます。 たとえば、アイコンボタンを使用してパスワードを表示または非表示にすることができます。 たとえば、アイコンボタンを使用してパスワードを表示または非表示にすることができます。 This can be used to add a prefix, a suffix or an action to an input.
+これを行う主な方法は `InputAdornment` です。 This can be used to add a prefix, a suffix, or an action to an input. たとえば、アイコンボタンを使用してパスワードを表示または非表示にすることができます。
{{"demo": "pages/components/text-fields/InputAdornments.js"}}
## サイズ
-Fancy smaller inputs? `size`propを使用します。
+小さい入力欄が好きですか? `size`propを使用します。
{{"demo": "pages/components/text-fields/TextFieldSizes.js"}}
-The `filled` variant input height can be further reduced by rendering the label outside of it.
+`filled` スタイルの入力欄の高さは、ラベルを外側に表示することでさらに小さくできます。
{{"demo": "pages/components/text-fields/TextFieldHiddenLabel.js"}}
-## レイアウト
-
-`dense` and `normal` alter other styles to meet the specification. `margin` prop can be used to alter the vertical spacing of inputs. Using `none` (default) will not apply margins to the `FormControl`, whereas `dense` and `normal` will.
+## Margin
-`fullWidth` can be used to make the input take up the full width of its container.
+The `margin` prop can be used to alter the vertical spacing of the text field. Using `none` (default) doesn't apply margins to the `FormControl` whereas `dense` and `normal` do.
{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
-## Uncontrolled vs Controlled
+## 最大幅
+
+`fullWidth` を使用すると、入力欄の幅がコンテナ一杯になります。
+
+{{"demo": "pages/components/text-fields/FullWidthTextField.js"}}
+
+## Uncontrolled vs. Controlled
-The component can be controlled or uncontrolled.
+制御されている(controlled)コンポーネントと制御されていない(uncontrolled)コンポーネントがあります。
{{"demo": "pages/components/text-fields/StateTextFields.js"}}
@@ -87,7 +89,7 @@ The component can be controlled or uncontrolled.
`TextField` は小さなコンポーネントから構成されています。( [`FormControl`](/api/form-control/)、 [`Input`](/api/input/)、 [`FilledInput`](/api/filled-input/)、 [`InputLabel`](/api/input-label/)、 [`OutlinedInput`](/api/outlined-input/)、 や [`FormHelperText`](/api/form-helper-text/)など )また、フォーム入力を大幅にカスタマイズするために直接活用できます。
-いくつかのネイティブHTML入力プロパティが `TextField` コンポーネントにないことに気づいたかもしれません。 これは故意です。 コンポーネントは最も使用されているプロパティの面倒を見ます、そしてそれは以下のデモで示される基本的なコンポーネントを使うことはユーザー次第です。 それでも、あなたは使用することができます `inputProps` (及び `InputProps`、 `InputLabelProps` あなたには、いくつかの決まり文句を避けたい場合はプロパティ)。 これは故意です。 コンポーネントは最も使用されているプロパティの面倒を見ます、そしてそれは以下のデモで示される基本的なコンポーネントを使うことはユーザー次第です。 それでも、あなたは使用することができます `inputProps` (及び `InputProps`、 `InputLabelProps` あなたには、いくつかの決まり文句を避けたい場合はプロパティ)。 これは故意です。 コンポーネントは最も使用されているプロパティの面倒を見ます、そしてそれは以下のデモで示される基本的なコンポーネントを使うことはユーザー次第です。 それでも、あなたは使用することができます `inputProps` (及び `InputProps`、 `InputLabelProps` あなたには、いくつかの決まり文句を避けたい場合はプロパティ)。 これは故意です。 コンポーネントは最も使用されているプロパティの面倒を見ます、そしてそれは以下のデモで示される基本的なコンポーネントを使うことはユーザー次第です。 それでも、あなたは使用することができます `inputProps` (及び `InputProps`、 `InputLabelProps` あなたには、いくつかの決まり文句を避けたい場合はプロパティ)。 これは故意です。 コンポーネントは最も使用されているプロパティの面倒を見ます、そしてそれは以下のデモで示される基本的なコンポーネントを使うことはユーザー次第です。 それでも、あなたは使用することができます `inputProps` (及び `InputProps`、 `InputLabelProps` あなたには、いくつかの決まり文句を避けたい場合はプロパティ)。
+いくつかのネイティブHTML入力プロパティが `TextField` コンポーネントにないことに気づいたかもしれません。 これは故意です。 The component takes care of the most used properties. Then, it's up to the user to use the underlying component shown in the following demo. それでも、あなたは使用することができます `inputProps` (及び `InputProps`、 `InputLabelProps` あなたには、いくつかの決まり文句を避けたい場合はプロパティ)。
{{"demo": "pages/components/text-fields/ComposedTextField.js"}}
@@ -97,27 +99,62 @@ The component can be controlled or uncontrolled.
## カラー
-The `color` prop changes the highlight color of the text field when focused.
+`color` プロパティは入力欄がフォーカスされた時のハイライト色を変更します。
{{"demo": "pages/components/text-fields/ColorTextFields.js"}}
## カスタマイズされた入力 (Customized inputs)
-コンポーネントのカスタマイズの例を次に示します。 詳細については、 [overrides documentation page](/customization/how-to-customize/)を参照してください。
+コンポーネントのカスタマイズの例を次に示します。 詳細については、 [こちら](/customization/how-to-customize/)を参照してください。
{{"demo": "pages/components/text-fields/CustomizedInputs.js"}}
-カスタマイズはCSSにとどまりません。コンポジションを使用してカスタムコンポーネントを作成し、アプリに独特の雰囲気を与えることができます。 カスタマイズはCSSにとどまりません。コンポジションを使用してカスタムコンポーネントを作成し、アプリに独特の雰囲気を与えることができます。 以下は、Googleマップに触発された [`InputBase`](/api/input-base/) コンポーネントを使用した例です。
+Customization does not stop at CSS. You can use composition to build custom components and give your app a unique feel. 以下は、Googleマップに触発された [`InputBase`](/api/input-base/) コンポーネントを使用した例です。
{{"demo": "pages/components/text-fields/CustomizedInputBase.js", "bg": true}}
🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/text-field).
+## `useFormControl`
+
+For advanced customization use cases, a `useFormControl()` hook is exposed. This hook returns the context value of the parent `FormControl` component.
+
+**API**
+
+```jsx
+import { useFormControl } from '@material-ui/core/FormControl';
+```
+
+**戻り値**
+
+`value` (_object_):
+
+- `value.adornedStart` (_bool_): Indicate whether the child `Input` or `Select` component has a start adornment.
+- `value.setAdornedStart` (_func_): Setter function for `adornedStart` state value.
+- `value.color` (_string_): The theme color is being used, inherited from `FormControl` `color` prop .
+- `value.disabled` (_bool_): Indicate whether the component is being displayed in a disabled state, inherited from `FormControl` `disabled` prop.
+- `value.error` (_bool_): Indicate whether the component is being displayed in an error state, inherited from `FormControl` `error` prop
+- `value.filled` (_bool_): Indicate whether input is filled
+- `value.focused` (_bool_): Indicate whether the component and its children are being displayed in a focused state
+- `value.fullWidth` (_bool_): Indicate whether the component is taking up the full width of its container, inherited from `FormControl` `fullWidth` prop
+- `value.hiddenLabel` (_bool_): Indicate whether the label is being hidden, inherited from `FormControl` `hiddenLabel` prop
+- `value.required` (_bool_): Indicate whether the label is indicating that the input is required input, inherited from the `FormControl` `required` prop
+- `value.size` (_string_): The size of the component, inherited from the `FormControl` `size` prop
+- `value.variant` (_string_): The variant is being used by the `FormControl` component and its children, inherited from `FormControl` `variant` prop
+- `value.onBlur` (_func_): Should be called when the input is blurred
+- `value.onFocus` (_func_): Should be called when the input is focused
+- `value.onEmpty` (_func_): Should be called when the input is emptied
+- `value.onFilled` (_func_): Should be called when the input is filled
+
+**例**
+
+{{"demo": "pages/components/text-fields/UseFormControl.js"}}
+
## 制限事項
### シュリンク
-入力ラベルの「shrink」状態は必ずしも正しくありません。 入力が何かを表示しているとすぐに入力ラベルは縮小するはずです。 状況によっては、「shrink」状態(数値入力、日時入力、ストライプ入力)を判別できません。 重複があるかもしれません。 入力が何かを表示しているとすぐに入力ラベルは縮小するはずです。 状況によっては、「shrink」状態(数値入力、日時入力、ストライプ入力)を判別できません。 重複があるかもしれません。 入力が何かを表示しているとすぐに入力ラベルは縮小するはずです。 状況によっては、「shrink」状態(数値入力、日時入力、ストライプ入力)を判別できません。 重複があるかもしれません。
+入力ラベルの「shrink」状態は必ずしも正しくありません。 入力が何かを表示しているとすぐに入力ラベルは縮小するはずです。 状況によっては、「shrink」状態(数値入力、日時入力、ストライプ入力)を判別できません。 重複があるかもしれません。

@@ -135,40 +172,40 @@ The `color` prop changes the highlight color of the text field when focused.
### フローティングラベル
-フローティングラベルは絶対位置に配置され、ページのレイアウトには影響しません。 正しく表示するには、入力がラベルよりも大きいことを確認する必要があります。 正しく表示するには、入力がラベルよりも大きいことを確認する必要があります。 正しく表示するには、入力がラベルよりも大きいことを確認する必要があります。 正しく表示するには、入力がラベルよりも大きいことを確認する必要があります。 正しく表示するには、入力がラベルよりも大きいことを確認する必要があります。
+The floating label is absolutely positioned. It won't impact the layout of the page. Make sure that the input is larger than the label to display correctly.
### type="number"
-Inputs of type="number" have potential usability issues:
+type="number" の入力欄には、使いやすさの面で問題がある可能性があります。
-- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others
-- コンポーネントを構成している場合は
+- 特定の数字でない文字を許可する ('e', '+', '-', '.') また他の文字を破棄する
+- 数値を増減するための機能は、偶発的な変更や通知しにくい変更を引き起こす可能性があります。
-and more - see [this article](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) by the GOV.UK Design System team for a more detailed explanation.
+詳細は、GOV.UK Design System チームのこちらの記事 [](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) をご覧ください。
-For number validation, one viable alternative is to use the default input type="text" with the _pattern_ attribute, for example:
+数値のバリデーションには、 _pattern_ 属性を持つデフォルトの input typr="text"を使用します。例えば、次のようにします。
```jsx
```
-In the future, we might provide a [number input component](https://github.com/mui-org/material-ui/issues/19154).
+将来的には、 [数値入力コンポーネント](https://github.com/mui-org/material-ui/issues/19154) を提供するかもしれません。
-### Helper text
+### ヘルパーテキスト
-The helper text prop affects the height of the text field. If two text fields are placed side by side, one with a helper text and one without, they will have different heights. For example:
+helper textプロパティはテキストフィールドの高さに影響します。 ヘルパーテキストを持つテキストフィールドと持たないテキストフィールドを横に並べると、それらの高さが異なるようになります。 For example:
{{"demo": "pages/components/text-fields/HelperTextMisaligned.js"}}
-This can be fixed by passing a space character to the `helperText` prop:
+これは `helperText` プロパティにスペースを渡すことで修正できます。
{{"demo": "pages/components/text-fields/HelperTextAligned.js"}}
## サードパーティの入力ライブラリとの統合
-サードパーティのライブラリを使って入力をフォーマットすることができます。 指定された入力コンポーネントは、 `inputRef` プロパティを処理する必要があります。 このプロパティは、次のインターフェイスを実装する値で呼び出す必要があります。 指定された入力コンポーネントは、 `inputRef` プロパティを処理する必要があります。 このプロパティは、次のインターフェイスを実装する値で呼び出す必要があります。 このプロパティは、次のインターフェイスを実装する値で呼び出す必要があります。 このプロパティは、次のインターフェイスを実装する値で呼び出す必要があります。 このプロパティは、次のインターフェイスを実装する値で呼び出す必要があります。
+サードパーティのライブラリを使って入力をフォーマットすることができます。 `inputComponent` プロパティを使用して、 ` ` 要素のカスタム実装を提供する必要があります。
-次のデモでは、[react-text-mask](https://github.com/text-mask/text-mask) と[react-number-format](https://github.com/s-yadav/react-number-format)ライブラリを使用します。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。
+次のデモでは、[react-text-mask](https://github.com/text-mask/text-mask) と[react-number-format](https://github.com/s-yadav/react-number-format)ライブラリを使用します。 同じ概念を [(たとえば、react-stripe-element)に適用することもできます](https://github.com/mui-org/material-ui/issues/16037)。
{{"demo": "pages/components/text-fields/FormattedInputs.js"}}
@@ -233,7 +270,7 @@ const MyInputComponent = React.forwardRef((props, ref) => {
## 補完プロジェクト
-より高度な使用例では、以下を利用できます。
+For more advanced use cases, you might be able to take advantage of:
- [mui-rff](https://github.com/lookfirst/mui-rff) Bindings for using Material-UI with [React Final Form](https://final-form.org/react).
- [formik-material-ui](https://github.com/stackworx/formik-material-ui): Bindings for using Material-UI with [formik](https://jaredpalmer.com/formik).
diff --git a/docs/src/pages/components/text-fields/text-fields-pt.md b/docs/src/pages/components/text-fields/text-fields-pt.md
index 62ac1e1c84a252..a16b941bfd8dc0 100644
--- a/docs/src/pages/components/text-fields/text-fields-pt.md
+++ b/docs/src/pages/components/text-fields/text-fields-pt.md
@@ -13,11 +13,9 @@ materialDesign: https://material.io/components/text-fields
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## TextField
+## Basic TextField
-O componente wrapper `TextField` é um controle de formulário completo, incluindo um rótulo, entrada e texto de ajuda.
-
-Ele suporta 3 variações: O estilo padrão, com contorno e preenchido.
+The `TextField` wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
@@ -31,7 +29,7 @@ Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc.
## Validação
-A propriedade `error` habilita o estado de erro, e utilizando a propriedade `helperText` será fornecido um feedback ao usuário sobre o erro.
+The `error` prop toggles the error state. The `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
@@ -39,7 +37,7 @@ A propriedade `error` habilita o estado de erro, e utilizando a propriedade `hel
A propriedade `multiline` transforma o `textfield` em um `TextArea .
Unless the`rows`prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)).
-You can use the`rowsMin`and`rowsMax` props to bound it.
+You can use the minRows` and `maxRows` props to bound it.
{{"demo": "pages/components/text-fields/MultilineTextFields.js"}}
@@ -57,7 +55,7 @@ Há muitas formas de incluir um ícone com um campo de texto.
### Adereços de campo
-A forma principal é utilizando um componente `InputAdornment`. Estes podem ser usados para adicionar um prefixo, sufixo ou uma ação para um campo. Por exemplo, você pode usar um botão com ícone para ocultar ou revelar a senha.
+A forma principal é utilizando um componente `InputAdornment`. This can be used to add a prefix, a suffix, or an action to an input. Por exemplo, você pode usar um botão com ícone para ocultar ou revelar a senha.
{{"demo": "pages/components/text-fields/InputAdornments.js"}}
@@ -71,15 +69,19 @@ A altura do campo na variante `filled` pode ser reduzida ainda mais ao renderiza
{{"demo": "pages/components/text-fields/TextFieldHiddenLabel.js"}}
-## Leiaute
+## Margin
+
+The `margin` prop can be used to alter the vertical spacing of the text field. Using `none` (default) doesn't apply margins to the `FormControl` whereas `dense` and `normal` do.
+
+{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
-A propriedade `margin` pode ser utilizada para alterar o espaçamento vertical dos campos. Usar `none` (padrão) não aplicará margens para o `FormControl`, enquanto `dense` e `normal` irá. As definições `dense` e `normal` altera outros estilos para atender a especificação.
+## Largura total
A propriedade `fullWidth` pode ser usada para fazer com que o campo ocupe a largura total de seu contêiner.
-{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
+{{"demo": "pages/components/text-fields/FullWidthTextField.js"}}
-## Não controlado vs controlado
+## Uncontrolled vs. Controlled
O componente pode ser controlado ou não controlado.
@@ -89,7 +91,7 @@ O componente pode ser controlado ou não controlado.
O componente `TextField` é composto por componentes menores ([`FormControl`](/api/form-control/), [`Input`](/api/input/), [`FilledInput`](/api/filled-input/), [`InputLabel`](/api/input-label/), [`OutlinedInput`](/api/outlined-input/), e [`FormHelperText`](/api/form-helper-text/)) que você pode aproveitar diretamente para customizar significativamente os campos do seu formulário.
-Você também pode ter notado que algumas propriedades de campo nativas do HTML input estão faltando no componente `TextField`. Isto é intencional. O componente cuida das propriedades mais usadas, depois cabe ao usuário, caso queira, usar o componente subjacente, como esta exibido na demonstração a seguir. Ainda, você pode usar `inputProps` (`InputProps` e `InputLabelProps`) se você quiser evitar algum boilerplate.
+Você também pode ter notado que algumas propriedades de campo nativas do HTML input estão faltando no componente `TextField`. Isto é intencional. The component takes care of the most used properties. Then, it's up to the user to use the underlying component shown in the following demo. Ainda, você pode usar `inputProps` (`InputProps` e `InputLabelProps`) se você quiser evitar algum boilerplate.
{{"demo": "pages/components/text-fields/ComposedTextField.js"}}
@@ -109,12 +111,47 @@ Aqui estão alguns exemplos de customização do componente. Você pode aprender
{{"demo": "pages/components/text-fields/CustomizedInputs.js"}}
-A customização não para no CSS, você pode usar composição para criar componentes customizados e dar ao seu aplicativo uma sensação única. Abaixo há um exemplo usando o componente [`InputBase`](/api/input-base/), inspirado pelo Google Maps.
+Customization does not stop at CSS. You can use composition to build custom components and give your app a unique feel. Abaixo há um exemplo usando o componente [`InputBase`](/api/input-base/), inspirado pelo Google Maps.
{{"demo": "pages/components/text-fields/CustomizedInputBase.js", "bg": true}}
🎨 Se você está procurando inspiração, você pode verificar [os exemplos de customização de MUI Treasury](https://mui-treasury.com/styles/text-field).
+## `useFormControl`
+
+For advanced customization use cases, a `useFormControl()` hook is exposed. This hook returns the context value of the parent `FormControl` component.
+
+**API**
+
+```jsx
+import { useFormControl } from '@material-ui/core/FormControl';
+```
+
+**Retornos**
+
+`value` (_object_):
+
+- `value.adornedStart` (_bool_): Indicate whether the child `Input` or `Select` component has a start adornment.
+- `value.setAdornedStart` (_func_): Setter function for `adornedStart` state value.
+- `value.color` (_string_): The theme color is being used, inherited from `FormControl` `color` prop .
+- `value.disabled` (_bool_): Indicate whether the component is being displayed in a disabled state, inherited from `FormControl` `disabled` prop.
+- `value.error` (_bool_): Indicate whether the component is being displayed in an error state, inherited from `FormControl` `error` prop
+- `value.filled` (_bool_): Indicate whether input is filled
+- `value.focused` (_bool_): Indicate whether the component and its children are being displayed in a focused state
+- `value.fullWidth` (_bool_): Indicate whether the component is taking up the full width of its container, inherited from `FormControl` `fullWidth` prop
+- `value.hiddenLabel` (_bool_): Indicate whether the label is being hidden, inherited from `FormControl` `hiddenLabel` prop
+- `value.required` (_bool_): Indicate whether the label is indicating that the input is required input, inherited from the `FormControl` `required` prop
+- `value.size` (_string_): The size of the component, inherited from the `FormControl` `size` prop
+- `value.variant` (_string_): The variant is being used by the `FormControl` component and its children, inherited from `FormControl` `variant` prop
+- `value.onBlur` (_func_): Should be called when the input is blurred
+- `value.onFocus` (_func_): Should be called when the input is focused
+- `value.onEmpty` (_func_): Should be called when the input is emptied
+- `value.onFilled` (_func_): Should be called when the input is filled
+
+**Exemplo**
+
+{{"demo": "pages/components/text-fields/UseFormControl.js"}}
+
## Limitações
### Shrink
@@ -137,13 +174,13 @@ ou
### Rótulo flutuante
-O rótulo flutuante está absolutamente posicionado, não afetará o leiaute da página. Você precisa ter certeza de que o componente de campo é maior do que o rótulo para a exibição correta.
+The floating label is absolutely positioned. It won't impact the layout of the page. Make sure that the input is larger than the label to display correctly.
### type="number"
Campos com type="number" tem problemas potenciais de usabilidade:
-- Permitindo certos caracteres não numéricos ('e', '+', '-', '.') e silenciosamente descartando outros e silenciosamente descartando outros
+- Permitindo certos caracteres não numéricos ('e', '+', '-', '.') e silenciosamente descartando outros e silenciosamente descartando outros e silenciosamente descartando outros
- A funcionalidade de rolagem para incrementar/decrementar o número, pode causar alterações acidentais difíceis de notar
e muito mais - consulte [este artigo](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) da equipe GOV.UK Design System para obter uma explicação mais detalhada.
@@ -235,7 +272,7 @@ Para que o campo de texto seja acessível, **a entrada deve estar vinculada ao r
## Projetos Complementares
-Para situações de uso mais avançadas, você pode tirar proveito com:
+For more advanced use cases, you might be able to take advantage of:
- [react-hook-form](https://react-hook-form.com/): React hook para validação de formulários.
- [formik-material-ui](https://github.com/stackworx/formik-material-ui): Bindings para usar Material-UI com [formik](https://jaredpalmer.com/formik).
diff --git a/docs/src/pages/components/text-fields/text-fields-ru.md b/docs/src/pages/components/text-fields/text-fields-ru.md
index 19d3607f5e8bb8..7bdd8f1aa209d2 100644
--- a/docs/src/pages/components/text-fields/text-fields-ru.md
+++ b/docs/src/pages/components/text-fields/text-fields-ru.md
@@ -13,11 +13,9 @@ materialDesign: https://material.io/components/text-fields
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## TextField
+## Basic TextField
-`TextField` представляет собой полноценный элемент управления формы, включая метку (label), само поле ввода и вспомогательный текст.
-
-It supports standard, outlined and filled styling.
+The `TextField` wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
@@ -31,13 +29,13 @@ Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc.
## Validation
-The `error` prop toggles the error state, the `helperText` prop can then be used to provide feedback to the user about the error.
+The `error` prop toggles the error state. The `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
## Multiline
-The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `rowsMin` and `rowsMax` props to bound it.
+The `multiline` prop transforms the text field into a [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) or a [TextareaAutosize](/components/textarea-autosize/). Unless the `rows` prop is set, the height of the text field dynamically matches its content (using [TextareaAutosize](/components/textarea-autosize/)). You can use the `minRows` and `maxRows` props to bound it.
{{"demo": "pages/components/text-fields/MultilineTextFields.js"}}
@@ -55,7 +53,7 @@ There are multiple ways to display an icon with a text field.
### Украшения поля ввода (Input)
-The main way is with an `InputAdornment`. Например, вы можете использовать кнопку-иконку, чтобы скрыть или показать пароль. This can be used to add a prefix, a suffix or an action to an input.
+The main way is with an `InputAdornment`. This can be used to add a prefix, a suffix, or an action to an input. This can be used to add a prefix, a suffix or an action to an input.
{{"demo": "pages/components/text-fields/InputAdornments.js"}}
@@ -69,15 +67,19 @@ The `filled` variant input height can be further reduced by rendering the label
{{"demo": "pages/components/text-fields/TextFieldHiddenLabel.js"}}
-## Расположение
+## Margin
+
+The `margin` prop can be used to alter the vertical spacing of the text field. Using `none` (default) doesn't apply margins to the `FormControl` whereas `dense` and `normal` do.
+
+{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
-`dense` and `normal` alter other styles to meet the specification. `margin` prop can be used to alter the vertical spacing of inputs. Using `none` (default) will not apply margins to the `FormControl`, whereas `dense` and `normal` will.
+## Full width
`fullWidth` can be used to make the input take up the full width of its container.
-{{"demo": "pages/components/text-fields/LayoutTextFields.js"}}
+{{"demo": "pages/components/text-fields/FullWidthTextField.js"}}
-## Uncontrolled vs Controlled
+## Uncontrolled vs. Controlled
The component can be controlled or uncontrolled.
@@ -87,7 +89,7 @@ The component can be controlled or uncontrolled.
`TextField` состоит из более мелких компонентов ( [`FormControl`](/api/form-control/), [`Input`](/api/input/), [`FilledInput`](/api/filled-input/), [`InputLabel`](/api/input-label/), [`OutlinedInput`](/api/outlined-input/), и [`FormHelperText`](/api/form-helper-text/) ) которые вы можете использовать напрямую, чтобы значительно кастомизировать ваши поля ввода.
-Вы также могли заметить, что некоторые нативные свойства ввода HTML отсутствуют в компоненте `TextField`. Это сделано специально. Компонент включает в себя наиболее часто используемые свойства, а для расширенного использования можно использовать базовый компонент, показанный в следующей демонстрации. Вы все еще можете использовать `inputProps` (и `свойства InputProps`, `InputLabelProps`), если хотите избежать излишнего кода.
+Вы также могли заметить, что некоторые нативные свойства ввода HTML отсутствуют в компоненте `TextField`. Это сделано специально. The component takes care of the most used properties. Then, it's up to the user to use the underlying component shown in the following demo. Вы все еще можете использовать `inputProps` (и `свойства InputProps`, `InputLabelProps`), если хотите избежать излишнего кода.
{{"demo": "pages/components/text-fields/ComposedTextField.js"}}
@@ -103,16 +105,51 @@ The `color` prop changes the highlight color of the text field when focused.
## Кастомизированные поля ввода
-Ниже находятся примеры кастомизации компонента. You can learn more about this in the [overrides documentation page](/customization/how-to-customize/).
+Ниже находятся примеры кастомизации компонента. Вы можете узнать об этом больше [в документации по переопределению свойств](/customization/how-to-customize/).
{{"demo": "pages/components/text-fields/CustomizedInputs.js"}}
-Настройка не ограничивается CSS, вы можете использовать композицию для создания пользовательских компонентов и придать вашему приложению уникальный стиль. Ниже приведен пример использования компонента [`InputBase`](/api/input-base/), вдохновленный Google Maps.
+Customization does not stop at CSS. You can use composition to build custom components and give your app a unique feel. Ниже приведен пример использования компонента [`InputBase`](/api/input-base/), вдохновленный Google Maps.
{{"demo": "pages/components/text-fields/CustomizedInputBase.js", "bg": true}}
🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/text-field).
+## `useFormControl`
+
+For advanced customization use cases, a `useFormControl()` hook is exposed. This hook returns the context value of the parent `FormControl` component.
+
+**API**
+
+```jsx
+import { useFormControl } from '@material-ui/core/FormControl';
+```
+
+**Возвращает**
+
+`value` (_object_):
+
+- `value.adornedStart` (_bool_): Indicate whether the child `Input` or `Select` component has a start adornment.
+- `value.setAdornedStart` (_func_): Setter function for `adornedStart` state value.
+- `value.color` (_string_): The theme color is being used, inherited from `FormControl` `color` prop .
+- `value.disabled` (_bool_): Indicate whether the component is being displayed in a disabled state, inherited from `FormControl` `disabled` prop.
+- `value.error` (_bool_): Indicate whether the component is being displayed in an error state, inherited from `FormControl` `error` prop
+- `value.filled` (_bool_): Indicate whether input is filled
+- `value.focused` (_bool_): Indicate whether the component and its children are being displayed in a focused state
+- `value.fullWidth` (_bool_): Indicate whether the component is taking up the full width of its container, inherited from `FormControl` `fullWidth` prop
+- `value.hiddenLabel` (_bool_): Indicate whether the label is being hidden, inherited from `FormControl` `hiddenLabel` prop
+- `value.required` (_bool_): Indicate whether the label is indicating that the input is required input, inherited from the `FormControl` `required` prop
+- `value.size` (_string_): The size of the component, inherited from the `FormControl` `size` prop
+- `value.variant` (_string_): The variant is being used by the `FormControl` component and its children, inherited from `FormControl` `variant` prop
+- `value.onBlur` (_func_): Should be called when the input is blurred
+- `value.onFocus` (_func_): Should be called when the input is focused
+- `value.onEmpty` (_func_): Should be called when the input is emptied
+- `value.onFilled` (_func_): Should be called when the input is filled
+
+**Пример**
+
+{{"demo": "pages/components/text-fields/UseFormControl.js"}}
+
## Ограничения
### Сжатие
@@ -135,13 +172,13 @@ The `color` prop changes the highlight color of the text field when focused.
### Плавающая метка
-Плавающий ярлык абсолютно позиционируется, он не повлияет на макет страницы. Необходимо убедиться, что поле ввода больше, чем метка для корректного отображения.
+The floating label is absolutely positioned. It won't impact the layout of the page. Make sure that the input is larger than the label to display correctly.
### type="number"
Inputs of type="number" have potential usability issues:
-- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others
+- Allowing certain non-numeric characters ('e', '+', '-', '.') and silently discarding others and silently discarding others and silently discarding others and silently discarding others
- Если вы составляете компонент:
and more - see [this article](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) by the GOV.UK Design System team for a more detailed explanation.
@@ -233,7 +270,7 @@ In order for the text field to be accessible, **the input should be linked to th
## Дополнительные проекты
-Для более сложных вариантов использования вы можете воспользоваться:
+For more advanced use cases, you might be able to take advantage of:
- [mui-rff](https://github.com/lookfirst/mui-rff) Bindings for using Material-UI with [React Final Form](https://final-form.org/react).
- [formik-material-ui](https://github.com/stackworx/formik-material-ui): Bindings for using Material-UI with [formik](https://jaredpalmer.com/formik).
diff --git a/docs/src/pages/components/text-fields/text-fields-zh.md b/docs/src/pages/components/text-fields/text-fields-zh.md
index 761988ecea4e95..a38dba9a9061a8 100644
--- a/docs/src/pages/components/text-fields/text-fields-zh.md
+++ b/docs/src/pages/components/text-fields/text-fields-zh.md
@@ -13,11 +13,9 @@ materialDesign: https://material.io/components/text-fields
{{"component": "modules/components/ComponentLinkHeader.js"}}
-## TextField
+## Basic TextField
-`TextField` wrapper 组件是一个完整的表单控件,它包括了标签,输入和帮助文本。
-
-它支持 standard,outlined 和 filled 这几个样式。
+The `TextField` wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.
{{"demo": "pages/components/text-fields/BasicTextFields.js"}}
@@ -25,19 +23,19 @@ materialDesign: https://material.io/components/text-fields
## Form props 表单的属性
-Standard form attributes are supported e.g. `required`, `disabled`, `type`, etc. as well as a `helperText` which is used to give context about a field's input, such as how the input will be used.
+该组件支持标准的表单属性,例如 `required`、`disabled`、`type` 以及`helperText` 等,用于提供字段输入的上下文,例如输入的使用方式。
{{"demo": "pages/components/text-fields/FormPropsTextFields.js"}}
## 校验
-您可以使用 `error` 属性来切换错误的状态,同时也可以使用 `helperText` 属性来给用户提供错误的提示信息。
+The `error` prop toggles the error state. The `helperText` prop can then be used to provide feedback to the user about the error.
{{"demo": "pages/components/text-fields/ValidationTextFields.js"}}
## 多行属性
-`multiline` 属性将文本字段转换为 [`