Lab

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 SearchField with shortcut="/", a single-choice ToggleGroup for the status, and selectable Chips 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
Escapeclears the search
← / →moves between statuses; Space or Enter presses one
Space / Entertoggles the focused label
Backspace / Deleteremoves 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.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.