SwiftUI.js
Components

ContentUnavailableView

ContentUnavailableView presents polished empty states for missing data, search misses, and first-run experiences.

ContentUnavailableView presents polished empty states for missing data, search misses, and first-run experiences.

Examples

Default

Preview unavailable for this example in the static docs build.

Show code
<ContentUnavailableView
      icon={<Text style={{ fontSize: '2rem' }}>☆</Text>}
      title="No favorites yet"
      description="Items you save will appear here."
      actions={<Button>Add item</Button>}
    />

API

PropTypeRequiredDescription
titleReactNodeYesThe primary title shown to the user.
descriptionReactNodeNoSupporting text shown below the title.
iconReactNodeNoOptional leading visual, such as an icon.
actionsReactNodeNoOptional actions rendered below the copy.

Inherits additional props from IBaseComponent.

Overview

ContentUnavailableView presents polished empty states for missing data, search misses, and first-run experiences.

Notes

  • Keep title concise and action-oriented.
  • actions can contain one or more buttons or links.

On this page