Descriptive text shown below the title. Can be a plain string or a styled component.
Support
Usage
Empty search results
No content state
With action button
Custom label
See Also
- ProgressView — loading indicator
- Text — text display
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
An empty state view with icon, title, description, and optional action buttons.
ContentUnavailableView(props: {
title?: string | Component;
systemImage?: string;
description?: string | Component;
label?: Component;
}): Component;
ContentUnavailableView(props: {
title?: string | Component;
systemImage?: string;
description?: string | Component;
label?: Component;
}, children: Component[]): Component;
ContentUnavailableView({
title: "No Results",
systemImage: "magnifyingglass",
description: "Try a different search term."
})
ContentUnavailableView({
title: "No Photos",
systemImage: "photo.on.rectangle",
description: "Photos you take will appear here."
})
ContentUnavailableView({
title: "No Internet Connection",
systemImage: "wifi.slash",
description: "Check your connection and try again."
}, [
Button("Retry", () => refresh())
])
ContentUnavailableView({
label: VStack([
Image({ systemName: "folder" })
.foregroundStyle(Color("gray")),
Text("No Documents")
.font("title2")
]),
description: "Create a new document to get started."
}, [
Button("New Document", () => createDocument())
])