Skip to content
Twentyfirst UIHalo

Bulk Action Bar

Data · BulkActionBar, ListRow, Checkbox

View as Markdown

The bar for selected items: how many are selected, "Clear" and the actions that work on all of them. DataTable shows it for its own selection; on its own it serves mail lists, file browsers and any list with checkboxes.

  • count hides the bar at 0; onClear shows "Clear".
  • actions: label, icon, danger, disabled. Extra controls (a menu) go in children.
  • Floats sticky at the bottom of its scroll area by default; floating={false} keeps it in the flow, e.g. above a list.
Quarterly numbers for the boardLena Hart
Re: venue for the offsiteNoah Berg
Your invoice for NovemberBilling
Draft of the hiring planAva Brandt

Props

BulkActionBar

PropTypeNotes
countnumberHow many items are selected; the bar hides at 0 (unless `keepOpen`).
actions?BulkActionBarAction[]
onClear?() => voidShows "Clear" and is called by it.
label?stringAccessible name of the toolbar (default "Bulk actions").
keepOpen?booleanStays visible with 0 selected (e.g. while an exit animation runs in your list).
floating?booleanDefault: the bar floats, sticky at the bottom of its scroll area (as in DataTable). `false` keeps it in the flow, e.g. at the top of a mail list.
children?ReactNodeMore controls after the actions (a menu, a select).
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

ListRow

PropTypeNotes
avatar?string
icon?IconName
tint?Tint | "plain"
leading?ReactNode
titleReactNodeRequired
subtitle?ReactNode
meta?ReactNode
trailing?ReactNode
unread?boolean
active?boolean
onClick?() => void
href?stringMakes the row a link (with `linkAs` for a router's link).
linkAs?ElementType
actions?ReactNodeButtons of the row's own (rename, remove …), outside the clickable area so nothing interactive is nested. Without `onClick` and `href` the row is not interactive at all.
titleLines?numberLines the title may take before it ends in an ellipsis (default: it wraps freely).
subtitleLines?numberLines the subtitle may take (default 1); badges and facts wrap within them.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Checkbox

PropTypeNotes
name?string
value?string
required?boolean
checked?boolean
defaultChecked?boolean
onChange?(e: ChangeEvent<HTMLInputElement>) => void
children?ReactNode
disabled?boolean
label?string
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.