> For the complete documentation index, see [llms.txt](https://legacy-docs.aragon.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.aragon.org/developers/tools/aragonui/structure/emptystatecard.md).

# EmptyStateCard

EmptyStateCard extends the Card component to represent an empty state in your app.

## Usage <a href="#usage" id="usage"></a>

```jsx
import { Main, Button, EmptyStateCard } from '@aragon/ui'

function App() {
  return (
    <EmptyStateCard
      text="There is no content."
      action={<Button>>Action</Button>}
    />
  )
}
```

## Demonstration

![](/files/80Zrf7JhwA9X36C1a2kL)

## Props <a href="#props" id="props"></a>

#### text <a href="#text" id="text"></a>

| TYPE         | DEFAULT VALUE   |
| ------------ | --------------- |
| `React node` | None (required) |

Set some text content for your EmptyStateCard.

#### **Example:**

```jsx
<EmptyStateCard text="You seem to not have any content on your wall." />
```

#### `illustration` <a href="#illustration" id="illustration"></a>

| TYPE         | DEFAULT VALUE          |
| ------------ | ---------------------- |
| `React node` | A default illustration |

An illustration to visually represent the empty state.

#### **Example:**

```jsx
<EmptyStateCard illustration={<img src={illustrationSrc} alt="" />} />
```

#### `action` <a href="#action" id="action"></a>

| TYPE         | DEFAULT VALUE |
| ------------ | ------------- |
| `React node` | None          |

The action, usually represented by a `Button`.

{% hint style="info" %}
Note: the Button will automatically set `mode` to `"strong"` and `wide` to `true` when used inside EmptyStateCard.
{% endhint %}

#### **Example:**

```jsx
const App = () => (
  <EmptyStateCard
    text="No votes yet."
    action={<Button label="Create a new vote" onClick={createVote} />}
  />
)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://legacy-docs.aragon.org/developers/tools/aragonui/structure/emptystatecard.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
