> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: e0c8f532-ee9b-4477-a532-7311a28018e7
---

# EmptyState | UI components

> Learn about the EmptyState component for use in UI extensions.

The `EmptyState` component sets the content that appears when the extension is in an empty state. Use this component when there's no content or data to help guide users.

<Frame>
  <img src="https://www.hubspot.com/hubfs/Knowledge_Base_2023_2024/design-guidelines-empty-state-primary-button.png" alt="design-guidelines-empty-state-primary-button" />
</Frame>

1. **Image:** the default image that comes with the component.
2. **Title:** the title that describes why the component is in an empty state.
3. **Additional text:** an additional [Text component](/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/text) to provide further guidance. This does not come with the component by default.
4. **Additional button:** an additional [Button component](/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/button) to help users take action. This does not come with the component by default.

```jsx theme={null}
import { EmptyState, Text } from '@hubspot/ui-extensions';

const Extension = ({ data }) => {
  if (!data || !data.length) {
    return (
      <EmptyState title="Nothing here yet" layout="vertical" reverseOrder={true}>
        <Text>Go out there and get some leads!</Text>
      </EmptyState>
    )
  }

  return (
      {data.map(...)}
  );
}
```

## Props

| **Prop**       | **Type**                                 | **Description**                                                                                                                                                                                             |
| -------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `flush`        | Boolean                                  | When set to `true`, removes the default vertical margins for the component. By default, set to `false`.                                                                                                     |
| `imageName`    | String                                   | The name of the image. See [available images](#available-images). By default, set to `'emptyStateCharts'`.                                                                                                  |
| `imageWidth`   | Number                                   | The max-width for the image container. By default, set to `250`.                                                                                                                                            |
| `layout`       | `'horizontal'` (default) \| `'vertical'` | The layout direction of the content.                                                                                                                                                                        |
| `reverseOrder` | Boolean                                  | When set to `true`, swaps out the visual order of the text (primary) and image (secondary) content. This ensures that the primary content is presented first to screen readers. By default, set to `false`. |
| `title`        | String                                   | The text for the title header.                                                                                                                                                                              |

## Available images

<div className="card-grid illustrations-grid">
  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/add-on-reporting.png">
    `addOnReporting`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/announcement.png">
    `announcement`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/api.png">
    `api`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/automated-testing.png">
    `automatedTesting`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/beta.png">
    `beta`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/building.png">
    `building`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/calling-set-up.png">
    `callingSetUp`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/companies.png">
    `companies`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/components.png">
    `components`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/cone.png">
    `cone`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/contacts.png">
    `contacts`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/content-strategy.png">
    `contentStrategy`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/custom-objects.png">
    `customObjects`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/customer-experience.png">
    `customerExperience`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/customer-support.png">
    `customerSupport`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/deals.png">
    `deals`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/developer-security-update.png">
    `developerSecurityUpdate`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/electronic-signature.png">
    `electronicSignature`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/electronic-signature-empty-state.png">
    `electronicSignatureEmptyState`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/email-confirmation.png">
    `emailConfirmation`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/empty-state-charts.png">
    `emptyStateCharts`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/idea.png">
    `idea`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/integrations.png">
    `integrations`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/leads.png">
    `leads`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/lock.png">
    `lock`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/meetings.png">
    `meetings`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/missed-goal.png">
    `missedGoal`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/multiple-objects.png">
    `multipleObjects`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/object.png">
    `object`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/products-shopping-cart.png">
    `productsShoppingCart`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/registration.png">
    `registration`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/sandbox-add-on.png">
    `sandboxAddOn`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/social.png">
    `social`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/store.png">
    `store`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/store-disabled.png">
    `storeDisabled`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/successfully-connected-email.png">
    `successfullyConnectedEmail`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/target.png">
    `target`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/task.png">
    `task`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/tickets.png">
    `tickets`
  </Card>

  <Card img="https://developers.hubspot.com/hubfs/Knowledge_Base_2023-24-25/uie-illustrations/vote-and-search.png">
    `voteAndSearch`
  </Card>
</div>

## Usage examples

* Display when it's the first use of a feature.
* Show when the user is required to take action in order to populate the card with information.

## Guidelines

* **DO:** make empty states informative so that users understand what will appear when the extension is not empty.
* **DO:** make empty states actionable. If relevant, explain the benefits of this area and how to add content or data.
* **DON'T:** make empty states too long.

## Related components

* [Alert](/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/alert)
* [ErrorState](/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/error-state)
* [LoadingSpinner](/apps/developer-platform/add-features/ui-extensions/ui-components/standard-components/loading-spinner)
