Skip to content

Commit a8accd2

Browse files
authored
Merge pull request #1000 from dimentoree/translate-components-option-page
Add Russian translation for components-option-page
2 parents 672c8cd + 82c6b72 commit a8accd2

File tree

1 file changed

+24
-24
lines changed
  • src/content/reference/react-dom/components

1 file changed

+24
-24
lines changed

src/content/reference/react-dom/components/option.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: "<option>"
44

55
<Intro>
66

7-
The [built-in browser `<option>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option) lets you render an option inside a [`<select>`](/reference/react-dom/components/select) box.
7+
[Встроенный в браузер компонент `<option>`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/option) отвечает за рендер некоторого пункта списка в поле [`<select>`](/reference/react-dom/components/select).
88

99
```js
1010
<select>
11-
<option value="someOption">Some option</option>
12-
<option value="otherOption">Other option</option>
11+
<option value="someOption">Пункт списка</option>
12+
<option value="otherOption">Другой пункт списка</option>
1313
</select>
1414
```
1515

@@ -19,56 +19,56 @@ The [built-in browser `<option>` component](https://developer.mozilla.org/en-US/
1919

2020
---
2121

22-
## Reference {/*reference*/}
22+
## Справочник {/*reference*/}
2323

2424
### `<option>` {/*option*/}
2525

26-
The [built-in browser `<option>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option) lets you render an option inside a [`<select>`](/reference/react-dom/components/select) box.
26+
[Встроенный в браузер компонент `<option>`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/option) отвечает за рендер некоторого пункта списка в поле [`<select>`](/reference/react-dom/components/select).
2727

2828
```js
2929
<select>
30-
<option value="someOption">Some option</option>
31-
<option value="otherOption">Other option</option>
30+
<option value="someOption">Пункт списка</option>
31+
<option value="otherOption">Другой пункт списка</option>
3232
</select>
3333
```
3434

35-
[See more examples below.](#usage)
35+
[См. больше примеров ниже.](#usage)
3636

37-
#### Props {/*props*/}
37+
#### Пропсы {/*props*/}
3838

39-
`<option>` supports all [common element props.](/reference/react-dom/components/common#props)
39+
`<option>` поддерживает все [пропсы общих HTML-элементов.](/reference/react-dom/components/common#props)
4040

41-
Additionally, `<option>` supports these props:
41+
Кроме того, `<option>` поддерживает следующие пропсы:
4242

43-
* [`disabled`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#disabled): A boolean. If `true`, the option will not be selectable and will appear dimmed.
44-
* [`label`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#label): A string. Specifies the meaning of the option. If not specified, the text inside the option is used.
45-
* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#value): The value to be used [when submitting the parent `<select>` in a form](/reference/react-dom/components/select#reading-the-select-box-value-when-submitting-a-form) if this option is selected.
43+
* [`disabled`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/option#disabled): булево значение. Если `true`, то пункт списка не будет доступен для выбора и будет отображаться затемнённым.
44+
* [`label`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/option#label): строка. Указывает смысловое значение пункта списка. Если значение не указано, то будет использоваться текст самого элемента `<option>`.
45+
* [`value`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/option#value): Значение, которое будет использоваться [в родительском теге `<select>` при отправке формы](/reference/react-dom/components/select#reading-the-select-box-value-when-submitting-a-form), если данный пункт списка будет выбран.
4646

47-
#### Caveats {/*caveats*/}
47+
#### Предостережения {/*caveats*/}
4848

49-
* React does not support the `selected` attribute on `<option>`. Instead, pass this option's `value` to the parent [`<select defaultValue>`](/reference/react-dom/components/select#providing-an-initially-selected-option) for an uncontrolled select box, or [`<select value>`](/reference/react-dom/components/select#controlling-a-select-box-with-a-state-variable) for a controlled select.
49+
* React не поддерживает атрибут `selected` тега `<option>`. Вместо этого, передайте `value` пункта списка родительскому [`<select defaultValue>`](/reference/react-dom/components/select#providing-an-initially-selected-option) для неуправляемого поля выбора или [`<select value>`](/reference/react-dom/components/select#controlling-a-select-box-with-a-state-variable) для управляемого.
5050

5151
---
5252

53-
## Usage {/*usage*/}
53+
## Применение {/*usage*/}
5454

55-
### Displaying a select box with options {/*displaying-a-select-box-with-options*/}
55+
### Отображение поля выбора с пунктами списка {/*displaying-a-select-box-with-options*/}
5656

57-
Render a `<select>` with a list of `<option>` components inside to display a select box. Give each `<option>` a `value` representing the data to be submitted with the form.
57+
Для отображения поля выбора используйте список компонентов `<option>` внутри тега `<select>`. Задайте `value` каждому элементу `<option>`, чтобы предоставить данные для отправки вместе с формой.
5858

59-
[Read more about displaying a `<select>` with a list of `<option>` components.](/reference/react-dom/components/select)
59+
[Подробнее про отображение тега `<select>` со списком компонентов `<option>`.](/reference/react-dom/components/select)
6060

6161
<Sandpack>
6262

6363
```js
6464
export default function FruitPicker() {
6565
return (
6666
<label>
67-
Pick a fruit:
67+
Выберите фрукт:
6868
<select name="selectedFruit">
69-
<option value="apple">Apple</option>
70-
<option value="banana">Banana</option>
71-
<option value="orange">Orange</option>
69+
<option value="apple">Яблоко</option>
70+
<option value="banana">Банан</option>
71+
<option value="orange">Апельсин</option>
7272
</select>
7373
</label>
7474
);

0 commit comments

Comments
 (0)