# Blankslate

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

## Preview

<div align="left"><figure><img src="/files/KWswix8VEsctrls96G03" alt="" width="203"><figcaption></figcaption></figure></div>

## Code

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

{% hint style="info" %}
To centre the blank slate in the view, pass the `justify` prop to the parent [\<View>](/gravity-native/components/view.md) component.
{% endhint %}

#### Props

| Prop       | Description                 | Required | Value    |
| ---------- | --------------------------- | -------- | -------- |
| action     | callback executed on  click | optional | function |
| buttonText | button label                | optional | string   |
| text       | message text                | optional | string   |
| title      | title                       | optional | string   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usegravity.app/gravity-native/components/blankslate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
