You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{useRef}from'react';exportconstYourComponent=()=>{constref=useRef<HTMLDialogElement>null;return(<><buttontype="button"onClick={()=>ref.current?.showModal()}>
Ouvrir la modal
</button><ModalonOutsideTap={()=>ref.current?.close()}ref={ref}><HeaderBaseid="headerId"><p>
Ici je contrôle complètement
<b>le contenu</b></p></HeaderBase><Body><p>
Reprehenderit sit quis aute nisi consequat consequat mollit. Commodo
in aliquip consectetur nulla sit anim. Pariatur minim commodo enim
ea eu laborum culpa laboris. Labore labore irure ipsum consequat
enim officia anim ipsum aliqua excepteur qui sint. Duis sint do
culpa adipisicing dolor adipisicing ea dolore aute nisi quis ullamco
aliquip occaecat. Aute ut mollit amet.
</p></Body><Footer><buttonclassName="btn af-btn af-btn--reverse"type="button"onClick={()=>ref.current?.close()}>
Annuler
</button><buttonclassName="btn af-btn"type="button">
Valider
</button></Footer></Modal></>);};