DSFR v1.12.0
Les champs permettent à un utilisateur d'entrer du contenu et données.
Documentation<div class="fr-input-group" id="input-group-8409">
<label class="fr-label" for="text-input-text">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-text-messages" id="text-input-text" type="text">
<div class="fr-messages-group" id="text-input-text-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8412">
<label class="fr-label" for="text-input-number">
Libellé champ de saisie
</label>
<input class="fr-input" pattern="[0-9]*" inputmode="numeric" aria-describedby="text-input-number-messages" id="text-input-number" type="number">
<div class="fr-messages-group" id="text-input-number-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8415">
<label class="fr-label" for="text-input-search">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-search-messages" id="text-input-search" type="search">
<div class="fr-messages-group" id="text-input-search-messages" aria-live="polite">
</div>
</div>
Préférez l'utilisation du modèle de bloc de Date unique
<div class="fr-input-group" id="input-group-8418">
<label class="fr-label" for="text-input-date">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-date-messages" id="text-input-date" type="date">
<div class="fr-messages-group" id="text-input-date-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8421">
<label class="fr-label" for="textarea">
Libellé champ de saisie
</label>
<textarea class="fr-input" aria-describedby="textarea-messages" id="textarea"></textarea>
<div class="fr-messages-group" id="textarea-messages" aria-live="polite">
</div>
</div>
Préférez l'utilisation du composant Mot de passe
<div class="fr-input-group" id="input-group-8424">
<label class="fr-label" for="text-input-password">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-password-messages" id="text-input-password" type="password">
<div class="fr-messages-group" id="text-input-password-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8428">
<label class="fr-label" for="text-input-button">
Libellé champ de saisie
</label>
<div class="fr-input-wrap fr-input-wrap--addon">
<input class="fr-input" aria-describedby="text-input-button-messages" id="text-input-button" type="text">
<button id="button-8429" type="submit" class="fr-btn">Envoyer</button>
</div>
<div class="fr-messages-group" id="text-input-button-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8433">
<label class="fr-label" for="text-input-action">
Libellé champ de saisie
</label>
<div class="fr-input-wrap fr-input-wrap--action">
<input class="fr-input" aria-describedby="text-input-action-messages" id="text-input-action" type="text">
<button id="button-8434" type="button" class="fr-btn fr-icon-delete-line fr-btn--secondary">Supprimer le champ</button>
</div>
<div class="fr-messages-group" id="text-input-action-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8437">
<label class="fr-label" for="text-input-placeholder">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-placeholder-messages" placeholder="placeholder" id="text-input-placeholder" type="text">
<div class="fr-messages-group" id="text-input-placeholder-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8440">
<label class="fr-label" for="text-input-value">
Libellé champ de saisie
</label>
<input class="fr-input" value="value" aria-describedby="text-input-value-messages" id="text-input-value" type="text">
<div class="fr-messages-group" id="text-input-value-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8443">
<label class="fr-label" for="text-input-icon">
Libellé champ de saisie
<span class="fr-hint-text">Texte de description additionnel</span>
</label>
<div class="fr-input-wrap fr-icon-alert-line">
<input class="fr-input" aria-describedby="text-input-icon-messages" id="text-input-icon" type="text">
</div>
<div class="fr-messages-group" id="text-input-icon-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group fr-input-group--disabled" id="input-group-8446">
<label class="fr-label" for="text-input-disabled">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-disabled-messages" disabled id="text-input-disabled" type="text">
<div class="fr-messages-group" id="text-input-disabled-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group" id="input-group-8449">
<label class="fr-label" for="text-input-hint">
Libellé champ de saisie
<span class="fr-hint-text">Texte de description additionnel</span>
</label>
<input class="fr-input" aria-describedby="text-input-hint-messages" id="text-input-hint" type="text">
<div class="fr-messages-group" id="text-input-hint-messages" aria-live="polite">
</div>
</div>
<div class="fr-input-group fr-input-group--valid" id="input-group-8452">
<label class="fr-label" for="text-input-valid">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-valid-messages" id="text-input-valid" type="text">
<div class="fr-messages-group" id="text-input-valid-messages" aria-live="polite">
<p class="fr-message fr-message--valid" id="text-input-valid-message-valid">Texte de validation</p>
</div>
</div>
<div class="fr-input-group fr-input-group--error" id="input-group-8455">
<label class="fr-label" for="text-input-error">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="text-input-error-messages" id="text-input-error" type="text">
<div class="fr-messages-group" id="text-input-error-messages" aria-live="polite">
<p class="fr-message fr-message--error" id="text-input-error-message-error">Texte d’erreur obligatoire</p>
</div>
</div>