Modal
Focus the merchant on a confirmation, short form, or important detail.
Official Shopify docsPolaris 2.0 web component
Declarative trigger
Connect the open and close buttons to the modal’s ID using commandFor.
React confirmation
Control the overlay through a ref and use the action slots to confirm or cancel the archive.
Save a note in a modal
Submit the form from the modal footer and close the overlay after validating and saving the note.