DSFR v1.13.1
La modale permet de concentrer l’attention de l’utilisateur exclusivement sur une tâche ou un élément d’information, sans perdre le contexte de la page en cours. Ce composant nécessite une action de l’utilisateur afin d'être clôturé ou ouverte.
Documentation<button data-fr-opened="false" aria-controls="modal-6068" id="modal-6068" type="button" class="fr-btn">Modale simple</button>
<dialog id="modal-6068" class="fr-modal" aria-labelledby="modal-6068-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6068" title="Fermer" type="button" id="button-6069" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6068-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6073" id="modal-6073" type="button" class="fr-btn">Modale SM</button>
<dialog id="modal-6073" class="fr-modal" aria-labelledby="modal-6073-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-6 fr-col-lg-4">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6073" title="Fermer" type="button" id="button-6074" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6073-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6078" id="modal-6078" type="button" class="fr-btn">Modale LG</button>
<dialog id="modal-6078" class="fr-modal" aria-labelledby="modal-6078-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-10 fr-col-lg-8">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6078" title="Fermer" type="button" id="button-6079" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6078-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6083" id="modal-6083" type="button" class="fr-btn">Modale formulaire</button>
<dialog id="modal-6083" class="fr-modal" aria-labelledby="modal-6083-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6083" title="Fermer" type="button" id="button-6084" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6083-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<form action="">
<fieldset class="fr-fieldset" id="input-sample" aria-labelledby="input-sample-legend input-sample-messages">
<legend class="fr-fieldset__legend" id="input-sample-legend">
Légende pour l’ensemble des éléments
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6059">
<label class="fr-label" for="input-sample-1">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="input-sample-1-messages" name="input-sample-1" id="input-sample-1" type="text">
<div class="fr-messages-group" id="input-sample-1-messages" aria-live="polite">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6060">
<label class="fr-label" for="input-sample-2">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="input-sample-2-messages" name="input-sample-2" id="input-sample-2" type="text">
<div class="fr-messages-group" id="input-sample-2-messages" aria-live="polite">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6061">
<label class="fr-label" for="input-sample-3">
Libellé champ de saisie
</label>
<input class="fr-input" aria-describedby="input-sample-3-messages" name="input-sample-3" id="input-sample-3" type="text">
<div class="fr-messages-group" id="input-sample-3-messages" aria-live="polite">
</div>
</div>
</div>
<div class="fr-messages-group" id="input-sample-messages" aria-live="polite">
</div>
</fieldset>
<button title="Envoyer" type="button" class="fr-btn">Libellé bouton</button>
</form>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6088" id="modal-6088" type="button" class="fr-btn">Modale iframe</button>
<dialog id="modal-6088" class="fr-modal" aria-labelledby="modal-6088-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6088" title="Fermer" type="button" id="button-6089" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6088-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<iframe title="Titre de l'iframe" class="fr-responsive-vid" src="https://www.youtube.com/embed/HyirpmPL43I" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6093" id="modal-6093" type="button" class="fr-btn">Modale avec zone d'action</button>
<dialog id="modal-6093" class="fr-modal" aria-labelledby="modal-6093-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6093" title="Fermer" type="button" id="button-6094" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6093-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
<div class="fr-modal__footer">
<div class="fr-btns-group fr-btns-group--right fr-btns-group--inline-reverse fr-btns-group--inline-lg fr-btns-group--icon-left">
<button type="button" id="button-6062" class="fr-btn fr-icon-checkbox-circle-line fr-btn--icon-left">Libellé bouton</button>
<button type="button" id="button-6063" class="fr-btn fr-icon-checkbox-circle-line fr-btn--icon-left fr-btn--secondary">Libellé bouton</button>
</div>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6098" id="modal-6098" type="button" class="fr-btn">Modale ancrée en haut</button>
<dialog id="modal-6098" class="fr-modal fr-modal--top" aria-labelledby="modal-6098-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6098" title="Fermer" type="button" id="button-6099" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6098-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
<div class="fr-modal__footer">
<div class="fr-btns-group fr-btns-group--right fr-btns-group--inline-reverse fr-btns-group--inline-lg fr-btns-group--icon-left">
<button type="button" id="button-6062" class="fr-btn fr-icon-checkbox-circle-line fr-btn--icon-left">Libellé bouton</button>
<button type="button" id="button-6063" class="fr-btn fr-icon-checkbox-circle-line fr-btn--icon-left fr-btn--secondary">Libellé bouton</button>
</div>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6103" id="modal-6103" type="button" class="fr-btn">Modale tableau</button>
<dialog id="modal-6103" class="fr-modal" aria-labelledby="modal-6103-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6103" title="Fermer" type="button" id="button-6104" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6103-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<div class="fr-table" id="modal-table-component">
<div class="fr-table__wrapper">
<div class="fr-table__container">
<div class="fr-table__content">
<table id="modal-table">
<thead>
<tr>
<th scope="col">
th0
</th>
<th scope="col">
th1
</th>
</tr>
</thead>
<tbody>
<tr id="modal-table-row-key-1" data-row-key="1">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-2" data-row-key="2">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-3" data-row-key="3">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-4" data-row-key="4">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-5" data-row-key="5">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-6" data-row-key="6">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-7" data-row-key="7">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-8" data-row-key="8">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-9" data-row-key="9">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-10" data-row-key="10">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-11" data-row-key="11">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-12" data-row-key="12">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-13" data-row-key="13">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-14" data-row-key="14">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-15" data-row-key="15">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
<tr id="modal-table-row-key-16" data-row-key="16">
<td>
Lorem ipsum dolor sit ame
</td>
<td>
Lorem ipsum dolor sit ame
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="fr-modal__footer">
<div class="fr-btns-group fr-btns-group--right fr-btns-group--inline-reverse fr-btns-group--inline-lg fr-btns-group--icon-left">
<button type="button" id="button-6064" class="fr-btn fr-icon-checkbox-circle-line fr-btn--icon-left">Libellé bouton</button>
<button type="button" id="button-6065" class="fr-btn fr-icon-checkbox-circle-line fr-btn--icon-left fr-btn--secondary">Libellé bouton</button>
</div>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button data-fr-opened="false" aria-controls="modal-6108" id="modal-6108" type="button" class="fr-btn">Modale simple</button>
<dialog id="modal-6108" class="fr-modal" aria-labelledby="modal-6108-title" data-fr-concealing-backdrop="false">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6108" title="Fermer" type="button" id="button-6109" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6108-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
</div>
</div>
</div>
</div>
</dialog>
<button onClick="window.dsfr(this.nextElementSibling).modal.disclose()" type="button" class="fr-btn">Modale simple</button>
<dialog id="modal-6113" class="fr-modal" aria-labelledby="modal-6113-title">
<div class="fr-container fr-container--fluid fr-container-md">
<div class="fr-grid-row fr-grid-row--center">
<div class="fr-col-12 fr-col-md-8 fr-col-lg-6">
<div class="fr-modal__body">
<div class="fr-modal__header">
<button aria-controls="modal-6113" title="Fermer" type="button" id="button-6114" class="fr-btn--close fr-btn">Fermer</button>
</div>
<div class="fr-modal__content">
<h1 id="modal-6113-title" class="fr-modal__title">
<span class="fr-icon-arrow-right-line fr-icon--lg" aria-hidden="true"></span>
Titre de la modale
</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.</p>
</div>
</div>
</div>
</div>
</div>
</dialog>