Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This sample shows how to achieve the following modal dialog UI using HTML:

It will also help you learn about handling OK/Cancel buttons, as well as Escape and Return key presses.


  1. In XD, open the Developer Console at Plugins > Development > Developer Console
  2. Run this plugin at Plugins > (UI) HTML Plugin
  3. Enter your name in the modal
  4. Click the OK or Cancel button, or press your keyboard's return or escape key
  5. See the output in the Developer Console

Learn more

Learn more about creating modal dialog UI in our docs:

You can’t perform that action at this time.