Patterns
TableToolbar
Replaces the table's toolbar when rows are selected: count, Clear, and bulk actions.
When to use
The bar above a Table: search, filters, column options, export; bulk actions when rows are selected.
Use something else
General page actions → PageHeader.
Do
- Show
selectedCountand bulk actions only while rows are selected.
Don't
- Don't put row-specific actions here.
Props
| Prop | Type |
|---|---|
selectedCount | number |
bulkActions | React.ReactNode |
onClearSelection | () => void; start?: React.ReactNode; end?: React.ReactNode; className?: string |
Use
const { TableToolbar } = window.Tessera;
const el = React.createElement(TableToolbar, { /* props */ });