Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

EmptyStateCard

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

Usage

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

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

Demonstration

Props

text

TYPE
DEFAULT VALUE

React node

None (required)

Set some text content for your EmptyStateCard.

Example:

illustration

TYPE
DEFAULT VALUE

React node

A default illustration

An illustration to visually represent the empty state.

Example:

action

TYPE
DEFAULT VALUE

React node

None

The action, usually represented by a Button.

Note: the Button will automatically set mode to "strong" and wide to true when used inside EmptyStateCard.

Example:

Last updated

Was this helpful?