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

Message

Messages communicate important information to a user and are designed to stand out wherever they’re placed in your UI.

Code

<Message
  title='Welcome to Gravity!'
  text='This is a sample dashboard to get you started'
  type='success'
  closable
/>

Props

PropDescriptionRequiredValue
actioncallback function executed on clickoptionalfunction
buttonTextbutton labeloptionalstring
closablelet the user hide the messageoptionalboolean
texttext labelrequiredstring
titletitlerequiredstring
typemessage typeoptionalinfo (default), success, warning or error