JSFiddle - React, Tailwind, and code Playground

by Richard Hunter

HTML

dsfsfsfsfssdfdfdfdfdffdf
dfdfdf
dfdfd
dfdelements can be integrated within a dialog by specifying them with the attribute method="dialog". When such a form is submitted, the dialog is closed with its returnValue attribute set to the value of the form's submit button that was used.
The ::backdrop CSS pseudo-element can be used to style behind  element, for example to dim inaccessible content whilst a modal dialog is active. The backdrop is only drawn when the dialog element is displayed with HTMLDialogElement.showModal().

<dialog open>blah</dialog>