The modal component can be used to overlay an area of the screen which can contain a prompt, dialog or interaction.

On p-modal set display to display:flex or display:none to toggle the visibility of the modal.

Warning:This pattern requires JS to be functional.


For more information view the modal design spec which includes the specification in markdown format and a PNG image.