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

Blankslate

Blank slate messages are used when there is no data to display and prompts the user to take action.

Code

<BlankSlate
  title='No items found'
  text='Would you like to create one?' 
  buttonText='Create Item' 
  action={ createItem } 
/>

Info

To centre the blank slate in the view, pass the justify prop to the parent <View> component.

Props

PropDescriptionRequiredValue
actioncallback executed on clickoptionalfunction
buttonTextbutton labeloptionalstring
textmessage textoptionalstring
titletitleoptionalstring