                type="text"
                placeholder="Your name"
              ></ion-input>
            </ion-item>
          </ion-content>
        </ion-modal>
      </ion-content>
    </ion-app>

    <script>
      const modal = document.querySelector('ion-modal');

      function cancel() {
        modal.dismiss(null, 'cancel');
      }

      function confirm() {
        const input = document.querySelector('ion-input');
        modal.dismiss(input.value, 'confirm');
      }

      modal.addEventLi