Bulk Action Bar
Data · BulkActionBar, ListRow, Checkbox
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.
counthides the bar at 0;onClearshows "Clear".actions: label, icon,danger,disabled. Extra controls (a menu) go inchildren.- 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
| Prop | Type | Notes |
|---|---|---|
count | number | How many items are selected; the bar hides at 0 (unless `keepOpen`). |
actions? | BulkActionBarAction[] | |
onClear? | () => void | Shows "Clear" and is called by it. |
label? | string | Accessible name of the toolbar (default "Bulk actions"). |
keepOpen? | boolean | Stays visible with 0 selected (e.g. while an exit animation runs in your list). |
floating? | boolean | Default: 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? | ReactNode | More controls after the actions (a menu, a select). |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
ListRow
| Prop | Type | Notes |
|---|---|---|
avatar? | string | |
icon? | IconName | |
tint? | Tint | "plain" | |
leading? | ReactNode | |
title | ReactNode | Required |
subtitle? | ReactNode | |
meta? | ReactNode | |
trailing? | ReactNode | |
unread? | boolean | |
active? | boolean | |
onClick? | () => void | |
href? | string | Makes the row a link (with `linkAs` for a router's link). |
linkAs? | ElementType | |
actions? | ReactNode | Buttons 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? | number | Lines the title may take before it ends in an ellipsis (default: it wraps freely). |
subtitleLines? | number | Lines the subtitle may take (default 1); badges and facts wrap within them. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Checkbox
| Prop | Type | Notes |
|---|---|---|
name? | string | |
value? | string | |
required? | boolean | |
checked? | boolean | |
defaultChecked? | boolean | |
onChange? | (e: ChangeEvent<HTMLInputElement>) => void | |
children? | ReactNode | |
disabled? | boolean | |
label? | string | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |