diff --git a/TRANSLATORS.md b/TRANSLATORS.md index 5989ad2db..95f4aa299 100644 --- a/TRANSLATORS.md +++ b/TRANSLATORS.md @@ -96,6 +96,7 @@ Voici la liste par ordre alphabétique (prénom, nom). **🙏🏻 Mille mercis
  • 'use client'
  • 'use server'
  • react-dom : Composants (accueil chapitre)
  • +
  • <select>
  • API React DOM intégrées
  • flushSync
  • hydrate
  • diff --git a/src/content/reference/react-dom/components/select.md b/src/content/reference/react-dom/components/select.md index 46710908c..ba6182c90 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 `