Seed Bible extension API (v1.19.0) / seed-bible/components / EmptyState
Function: EmptyState()
function EmptyState(__namedParameters: EmptyStateProps): Element;What a list or screen shows when there is nothing in it yet: no bookmarks, no friends, no search results. A one-line inline note by default; give it size="panel" plus an icon, a title and an action for an empty screen.
A screen that needs it to look different sets the custom properties it exposes instead of overriding its rules: --sb-empty-state-color (the text, for a screen with its own muted grey), --sb-empty-state-font-size, --sb-empty-state-padding, and --sb-empty-state-background, -border and -radius (for one that sits in a box). To have screen readers announce it when it appears (a search with no results), pass role="status".
Parameters
| Parameter | Type |
|---|---|
__namedParameters | EmptyStateProps |
Returns
Element