Selection bar
Bulk actions for the picked emails. It floats 16 above the bottom of the list on bg/inverse with Shadow/LG.
Entering and leaving
It shows while count is above 0: in with translateY(8px) and opacity over 150ms, out in 100ms. It keeps the last count while it leaves, so it never reads “0 selected”. Esc or the × clears the selection. Each action has a tooltip with its shortcut.
Usage
import { SelectionBar } from "@kuori/ui/inbox";<SelectionBar count={selected.size} onClear={clear} onArchive={archive} />SelectionBar
PropTypeDescription
countRequirednumberHow many are picked. Hidden at 0
onClearRequired() => voidThe × and Esc
onMarkRead() => voidMark as read (⇧I)
onTag() => voidAdd tag (L)
onStar() => voidAdd to favourites (S)
onArchive() => voidArchive (E)
onDelete() => voidDelete (#)
moreReactNodeReplaces the More button with a menu
classNamestringAdditional CSS classes