Loading and empty states
Slant / Components
A review queue in its three states: skeleton rows under a shimmering "Thinking…" line while it loads, an empty state with a way out, and the tasks once they arrive.
The theme follows the link: share a page with ?theme=moon.
Usage
<Skeleton>rows stand in for the tasks,<Shimmer>sweeps the "Thinking…" line, and<Button loading>shows its<Spinner>.<EmptyState>gives the empty queue a title, a line of help and an action; a<Segmented>switches between the states, and Refresh loads for a moment, then shows the list.
Keyboard
| ← / → / ↑ / ↓ | switches between loading, empty and loaded |
| Tab | reaches Refresh and the action in the empty state |
| Enter / Space | refreshes, or shows all tasks |
Accessibility
- The queue is
aria-busywhile it loads and its skeletons are hidden from assistive technology; a polite live region says when it is loading, empty or loaded. - The loading button keeps focus and says it is busy, and the shimmering text stays real text.
Loading and empty states in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.