Filter bar
Slant / Controls
Search, a status toggle and label chips narrowing a task list as you go, with the active filters as chips you can remove.
The theme follows the link: share a page with ?theme=moon.
Usage
- A
SearchFieldwithshortcut="/", a single-choiceToggleGroupfor the status, and selectableChips for the labels. - Filters combine: a task must match the search, the status and any one of the chosen labels.
- The active filters repeat as removable
Chips; Clear all resets them and returns focus to the search.
Keyboard
| / | focuses the search from anywhere on the page |
| Escape | clears the search |
| ← / → | moves between statuses; Space or Enter presses one |
| Space / Enter | toggles the focused label |
| Backspace / Delete | removes the focused active filter |
Accessibility
- The status buttons and label chips expose their state with
aria-pressed. - The count is a status region ("3 of 8 tasks"), so each change is read out.
- Removing a filter moves focus to the next one, or back to the search when none are left.
Filter bar in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.