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
countRequired
number
How many are picked. Hidden at 0
onClearRequired
() => void
The × and Esc
onMarkRead
() => void
Mark as read (⇧I)
onTag
() => void
Add tag (L)
onStar
() => void
Add to favourites (S)
onArchive
() => void
Archive (E)
onDelete
() => void
Delete (#)
more
ReactNode
Replaces the More button with a menu
className
string
Additional CSS classes