UI & interactionNewAccessible dialogs: modal, sheet, confirm
One small dialog core that does the whole job: a modal, side and bottom sheets you can drag away, and awaitable confirm() and prompt().

The filters a dashboard or a report shares.
The filters a dashboard or a report shares: a period (presets counted back from today, or two days of your own) and segments (one value in a dropdown, several in a list of boxes), in one filter state that is kept in the page’s URL, so a link or a reload brings the same view back. Saved views can be named, renamed, deleted and one chosen to open first. On a phone the bar folds behind one button that says what is set and opens as a sheet. Days are plain calendar days, so no time zone can move them. Plain TypeScript and CSS, flat and quiet, styled by the shared tokens.
Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU <0.01–<0.01 ms). What ran: Measured Alone: the bar with a period, two segments, saved views and reset, inline. The bench opens the region list, ticks a box and closes it. Phones: tiers are being measured next.
Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.
install("filter-bar")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it upprefix; it is written with history.replaceState, so filtering adds no Back steps.#/board) is kept: the filters go in the search part before the hash.YYYY-MM-DD plain days, counted from the reader’s local today (today to change it).storageKey, per browser.auto the sheet follows the window’s width (sheetQuery).rangeField you pass is mounted only while the period is custom and disposed when it is not: keep no reference to it.Written for the library. Fully custom code.