Filters

The two dropdowns in the inbox header. They always show their current value, never a bare “Filter”.

Read status and tags

24 tall, radius 8, a border/subtle hairline. ReadFilter picks one of All mail, Unread or Read. TagFilter picks several: “Show mail tagged”, All tags, then each tag in its colour with a count. With several picked the label reads “Work + 2”. There is no Starred filter; the sidebar’s Favourites covers it.

Usage

import { ReadFilter, TagFilter } from "@kuori/ui/inbox";
<ReadFilter value={read} onValueChange={setRead} />

ReadFilter

PropTypeDescription
valueRequired
'all''unread''read'
The current choice, shown on the trigger
onValueChangeRequired
(value) => void
Called with the new choice

TagFilter

PropTypeDescription
valueRequired
TagId[]
The picked tags. Empty means All tags
onValueChangeRequired
(value: TagId[]) => void
Called with the new set, in tag order
labelRequired
string
“All tags”, “Work” or “Work + 2”
counts
Partial<Record<TagId, number>>
How many emails carry each tag