MindeesUI
ComponentsStates

EmptyState

A centered placeholder for "no data" screens with an icon, title, description, and optional action.

EmptyState is a centered layout for when a list or screen has nothing to show. It renders an optional icon, a title (defaulting to Nothing here yet), an optional description, and an optional action such as a button to create the first item.

Import

import { EmptyState } from '@mindees/ui';

Usage

<EmptyState
  title="No projects yet"
  description="Create your first project to get started."
  action={<Button onPress={create}>New project</Button>}
/>

Props

PropTypeDefaultDescription
titlestring'Nothing here yet'Heading copy.
descriptionstringSupporting copy shown under the title.
iconReactNodeIcon or illustration rendered above the title.
actionReactNodeAction node (typically a Button) below the copy.
styleStyleProp<ViewStyle>Style applied to the container.

Inherits the remaining ViewProps (except style).

Accessibility

The container uses accessibilityRole="summary" so the title and description are announced together as a single status. Keep the title concise and the description actionable.

On this page