Gravity
Search…
Blankslate
Use a blank slate when there is no data to display and prompt the user to take action.
1
<BlankSlateMessage
2
title='No items found'
3
text='Would you like to create one?'
4
buttonText='Create Item'
5
action={ createItem }
6
/>
Copied!
To centre the blank slate in the view, pass the justify prop to the parent <View> component.

Props

prop
description
value
title
title
string
text
body text
string
buttonText
button label (optional)
string
action
callback function executed on button click (optional)
function
Last modified 1yr ago
Copy link