From c1ccf5c96f90ae4b682058ee278b556aef553deb Mon Sep 17 00:00:00 2001 From: Christophe Porteneuve Date: Wed, 30 Aug 2023 15:15:51 +0200 Subject: [PATCH 1/2] copy(select): first full translation --- .../reference/react-dom/components/select.md | 213 +++++++++--------- .../react-dom/components/textarea.md | 4 +- 2 files changed, 112 insertions(+), 105 deletions(-) diff --git a/src/content/reference/react-dom/components/select.md b/src/content/reference/react-dom/components/select.md index 46710908c..3454e913a 100644 --- a/src/content/reference/react-dom/components/select.md +++ b/src/content/reference/react-dom/components/select.md @@ -4,12 +4,12 @@ title: "` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) lets you render a select box with options. +Le [composant natif ` - - + + ``` @@ -19,68 +19,68 @@ The [built-in browser `` {/*select*/} -To display a select box, render the [built-in browser `` du navigateur](https://developer.mozilla.org/fr/docs/Web/HTML/Element/select). ```js ``` -[See more examples below.](#usage) +[Voir plus d'exemples ci-dessous](#usage). #### Props {/*props*/} -`` prend en charge toutes les [props communes aux éléments](/reference/react-dom/components/common#props). -You can [make a select box controlled](#controlling-a-select-box-with-a-state-variable) by passing a `value` prop: +Une liste de sélection peut devenir un [champ contrôlé](#controlling-a-select-box-with-a-state-variable) en lui passant une prop `value` : -* `value`: A string (or an array of strings for [`multiple={true}`](#enabling-multiple-selection)). Controls which option is selected. Every value string match the `value` of some ``](https://developer.mozilla.org/fr/docs/Web/HTML/Element/optgroup) et [``](https://developer.mozilla.org/fr/docs/Web/HTML/Element/datalist). Vous pouvez aussi passer vos propres composants à condition qu'ils finissent par produire un des composants natifs autorisés. Si vous passez vos propres composants et que ceux-ci produisent au final des balises `