Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Native

Modal

A modal blocks all user interaction and displays a message to the user or asks for feedback using a form.

<Modal title='Edit User'>
  <Children/>
</Modal>
PropDescriptionRequiredValue
animationanimation typeoptionalslide (default), fade or none
titletitle of the modalrequiredstring

You can trigger a modal from anywhere in your application using the AppContext.

context.modal.show()
context.modal.hide()