Empty State

Explain why content is absent and give the user a useful next action.

No incidents found

Adjust the filters or create the first incident.

Usage Example
@emptystate.EmptyState(emptystate.Config{
    Title:       "No incidents found",
    Description: "Adjust the filters or create the first incident.",
    Icon:        incidentIcon(),
    Action:      createIncidentAction(),
})

Informational

Omit Action when the user only needs to understand when content will appear.

No recent activity

Deployments and configuration changes will appear here.

Informational
@emptystate.EmptyState(emptystate.Config{
    Title:       "No recent activity",
    Description: "Deployments and configuration changes will appear here.",
})

Go API

v0.0.12

The examples above cover behavior and composition. pkg.go.dev is the canonical reference for exported types, functions, methods, and Go documentation.

github.com/araihu/goshtoso/components/emptystate
Open v0.0.12 API