A modal blocks all user interaction with an overlay and displays a message to the user/asks for feedback.

You can generate a modal anywhere in your application using the ViewContext - you don't need to import a component.


  • title
  • text
  • form - a form object
  • url - destination to send the form
  • method - HTTP post type
  • buttonText – text for the confirm button
  title: 'Add User',
  form: this.addUserForm,
  buttonText: 'Send Invite',
  text: 'To invite more than one user, seperate the emails with a comma',
  url: '/api/user/invite',
  method: 'POST'