Data table
ProBrowse, sort, filter, select and act on records, from the browser or a server, with saved views and a compact form. Not an M3 component (@windmorph/react-pro).
import { DataTable, DataTableToolbar, DataTableView, DataTablePagination, DataTableFilterChips, DataTableFilterDialog, DataTableColumnSettings, useDataTable } from '@windmorph/react-pro';Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.
Props
DataTable 40 props
The columns.
Client mode: every row. Server mode: the current page.
A row's unique id.
clientsorts, filters and pagesrows(a guide of up to about 5,000);serverreportsonStateChangeand the app supplies the page andtotalRows.Server mode: how many rows match the current search and filters.
The state (controlled, with
onStateChange), for fetching pages or saving views.The state to start from, when uncontrolled.
A list of 4 to 20 rows with no toolbar, search, filters, column settings or pagination.
How rows are selected.
Whether a row can be selected.
The bulk bar's actions while rows are selected.
A row's menu of actions.
Makes each row a link, working before the page's script loads.
The rows-per-page choices.
How many columns can sort at once.
The width class below which the table becomes a list.
renderCompactRowtype((row: Row) => DataTableCompactRow)defaultthe row header, and the next column that isn't end-aligned as supporting text; with none, every other column's name and valueWhat a compact row shows.
The rows' greatest height, px or any CSS length: past it they scroll under the header (a list's rows scroll too), and a scroller with nothing to move through takes focus so the keyboard can scroll it.
The app's own filters, beside the search.
The app's own active filters, shown as chips.
The app's actions on the table, at the toolbar's end.
Shows loading rows, or a progress bar over rows already there.
A message to show in place of the rows.
Shown when no rows match.
The table's own density.
Replaces icons.
Ref to the outermost element.
The outermost element's id.
Events
Called with the whole state when anything changes.
Called when a row is activated.
Clears the app's filters and the column filters at once.
Adds a retry button to the error.
Text
Words it shows or announces. A
LabelsProvidersets them for the whole app.The search field’s name and placeholder.
The Filter button.
A filter dialog’s title.
The column settings button’s name.
The column settings dialog’s title.
Names a column’s checkbox in settings.
Names the button that moves a column up.
Names the button that moves a column down.
Names a column’s pin menu.
The menu item that pins to the start.
The menu item that pins to the end.
The menu item that unpins.
Names the mark of a column pinned to the start.
Names the mark of a column pinned to the end.
The button that restores the columns.
The button that closes column settings.
The text filter’s field.
The lower bound’s field.
The upper bound’s field.
The first date’s field.
The last date’s field.
The button that applies a filter.
The button that removes a filter.
The button that closes a filter dialog.
The button that removes every filter.
Names the group of chips.
A text filter’s chip.
labels.chipRangetype(column: string, from: string, to: string) => stringdefault${column} ${from} – ${to}The chip of a filter with both bounds.
The chip of a filter with a first bound.
The chip of a filter with a last bound.
A choice filter’s chip.
Names the chip’s press, which edits it.
First words of a chip’s remove button, whose name ends with the filter.
Names the header’s checkbox.
Names a row’s checkbox.
The bulk bar’s count.
The button that selects every matching row.
Names the bulk bar’s close button.
The rows-per-page choice.
labels.rangetype(from: number, to: number, total: number) => stringdefault${from}–${to} of ${total}The range of rows on show.
Names the Previous button.
Names the Next button.
Names a header’s sort position.
Names a column’s resize control.
Describes a column’s resize control.
Announced when a column is fitted to its content.
labels.sortedBytype(levels: { column: string; direction: "ascending" | "descending"; }[]) => stringdefaultworded from its arguments, in EnglishAnnounced when the sort changes.
Announced when the sort is cleared.
Names a row’s actions menu.
Shown in a cell with no value.
Names the loading state.
The empty state’s title.
The error state’s button.
One of
aria-labeloraria-labelledbyis required.One of
aria-labeloraria-labelledbyis required.The id of an element that describes it.
The id of an element with more detail about it.
Classes for the outermost element. Wins over the defaults via
cn().Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Inline styles for the outermost element.
Also accepts the root element's HTML attributes (id, data-*, event handlers).
DataTableToolbar 10 props
What
useDataTablereturned.The app's own filters, beside the search.
The app's actions on the table, at the toolbar's end.
The bulk bar's actions while rows are selected.
The width class below which the column settings button hides.
Ref to the part's outermost element.
The part's outermost element's id.
Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Classes for the part's outermost element. Wins over the defaults via
cn().Inline styles for the part's outermost element.
DataTableView 23 props
What
useDataTablereturned.How rows are selected.
Whether a row can be selected.
A row's menu of actions.
Makes each row a link, working before the page's script loads.
How many columns can sort at once.
The width class below which the table becomes a list.
renderCompactRowtype((row: Row) => DataTableCompactRow)defaultthe row header, and the next column that isn't end-aligned as supporting text; with none, every other column's name and valueWhat a compact row shows.
The rows' greatest height, px or any CSS length: past it they scroll under the header (a list's rows scroll too), and a scroller with nothing to move through takes focus so the keyboard can scroll it.
Shows loading rows, or a progress bar over rows already there.
A message to show in place of the rows.
Shown when no rows match.
Ref to the part's outermost element.
The part's outermost element's id.
Events
Called when a row is activated.
Adds a retry button to the error.
Text
One of
aria-labeloraria-labelledbyis required.One of
aria-labeloraria-labelledbyis required.The id of an element that describes it.
The id of an element with more detail about it.
Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Classes for the part's outermost element. Wins over the defaults via
cn().Inline styles for the part's outermost element.
DataTablePagination 6 props
What
useDataTablereturned.Ref to the part's outermost element.
The part's outermost element's id.
Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Classes for the part's outermost element. Wins over the defaults via
cn().Inline styles for the part's outermost element.
DataTableFilterChips 8 props
What
useDataTablereturned.The app's own active filters, shown as chips.
Ref to the part's outermost element.
The part's outermost element's id.
Events
Clears the app's filters and the column filters at once.
Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Classes for the part's outermost element. Wins over the defaults via
cn().Inline styles for the part's outermost element.
DataTableFilterDialog 6 props
What
useDataTablereturned.Ref to the part's outermost element.
The part's outermost element's id.
Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Classes for the part's outermost element. Wins over the defaults via
cn().Inline styles for the part's outermost element.
DataTableColumnSettings 6 props
What
useDataTablereturned.Ref to the part's outermost element.
The part's outermost element's id.
Classes for each part.
The previous and next page buttons.
The checkbox in a selection cell or its header.
The button that opens a row's actions.
Each placeholder cell while loading.
The icon in the previous and next page buttons.
Each row of the column settings.
A column’s name in the column settings.
What a header cell holds.
A header cell’s text.
The visible line of a column’s resize handle.
The fields in the filter dialog.
The pair of fields for a number or date range.
What holds the loading rows.
The outermost element.
The toolbar.
The search field.
The Filter button.
The app’s actions at the toolbar’s end.
The column settings button.
The bar that replaces the toolbar while rows are selected.
The bulk bar’s selected count.
The bulk bar’s actions.
The active filters.
Each filter chip.
The Clear all button.
The bordered area that scrolls.
The
tableelement.The header group.
The header’s row.
Each column header.
A header’s sort arrow.
A header’s sort position, with several sort levels.
A header’s resize handle.
The rows’ group.
Each row.
Each cell.
The link in a row’s header cell, with
rowHref.A row’s checkbox cell.
A row’s actions cell.
The rows-per-page choice, range and page buttons.
The rows-per-page choice.
The “1–25 of 60” text.
The Previous and Next buttons.
The list shown below
compactBelow.Each row of that list.
Each figure of a compact row, its column's name and value: shown when no other column holds text.
The loading state.
Each loading row.
The bar shown over rows while loading more.
The empty state.
The error state.
The column settings dialog.
The filter dialog.
Classes for the part's outermost element. Wins over the defaults via
cn().Inline styles for the part's outermost element.
Types
ColumnDef 20 fields
A column definition, shared by DataTable and DataGrid.
Unique within the table.
Shown above the column and in column settings. Never empty: screen readers name it.
The value used to sort, search, filter and display by default.
Custom cell content.
Formats the value when there is no
cell, right-aligning numbers.With
type="currency", the ISO 4217 code.Replaces the
type's formatting.Alignment of the header and cells.
Width, px, or
'fit'for the widest of its header and values plus the cell padding, withinminWidthandmaxWidth. A person's resize wins over either. Acellthat wraps or grows with its box (several tags, a progress bar) should set a number instead.Least width, px.
Greatest width, px.
Shares the table's spare width in proportion to its
width.Announced with each row.
Whether a press on the header sorts.
Whether people can hide it.
Whether people can pin it.
Whether people can reorder it.
Whether people can resize it.
How people filter it, if they can.
Whether search reads it.
TableState 9 fields
Everything a person can change about a table, serializable so an app can save it as a view.
Column ids, in order.
Widths a person set, by column id, in px.
Columns kept in view as the rest scroll sideways.
Sort levels in order; empty for the rows as given.
Filters by column id.
The search text.
The zero-based page and how many rows it holds.
Selected row ids, kept across pages;
allMatchingcovers every row matching the filters.
DataTableRowAction 4 fields
One action in a row's menu.
Unique within the row’s menu.
The menu item’s words.
Whether it can be chosen.
Called when it’s chosen.
DataTableCompactRow 4 fields
What a row shows in the compact form.
The row’s main text.
supportingTexttypestring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<AwaitedReactNode>A second line.
leadingtypestring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<AwaitedReactNode>Content before the text.
trailingtypestring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | Promise<AwaitedReactNode>defaultthe row’s actions menuContent after the text.
Hooks
useDataTable
A data table's state and rows, for composing its parts differently from DataTable. Not an M3 component (Windmorph Pro, docs/plans/data-table.md).
The columns.
Client mode: every row. Server mode: the current page.
A row's unique id.
clientsorts, filters and pagesrows(a guide of up to about 5,000);serverreportsonStateChangeand the app supplies the page andtotalRows.Server mode: how many rows match the current search and filters.
The state (controlled, with
onStateChange), for fetching pages or saving views.The state to start from, when uncontrolled.
Called with the whole state when anything changes.
Every row on one page, with no paging.
The rows-per-page choices.
Whether rows are on their way, so a page past the end isn't corrected yet.
Replaces icons.
Words it shows or announces. A
LabelsProvidersets them for the whole app.
Returns DataTableController<Row>
Every column.
The columns showing, in order.
The rows of the current page.
Every row given, before search, filters and paging: what client-mode
width: 'fit'measures.A row’s unique id.
Where sorting, filtering and paging happen.
Whether it’s the plain form.
The rows-per-page choices.
How many rows match.
The whole state.
The page shown, moved back when the total shrank below it.
Merges a change into the state.
Applies a search, from the first page and with nothing selected.
Sets or, with
null, removes a column's filter.Removes every column filter.
Puts column order, visibility, widths and pins back as they started.
The column whose filter dialog is open.
Opens a column's filter dialog, or closes it with
null.Whether the column settings dialog is open.
Opens or closes the column settings dialog.
The last sort change, for the polite live region.
Sets the message for the polite live region.
The locale values are formatted in.
formattype{ number: (value: number) => string; day: (iso: string) => string; cell<Row>(column: ColumnDef<Row>, row: Row): string; }RequiredFormats cell values for that locale.
Every word, with the app’s overrides.
Every icon, with the app’s overrides.
Spec status
Not part of Material Design 3: a Windmorph Pro component, built on M3's colour roles, type scale, shapes and motion. Its variants and configurations each link to a live example.
| Item | Status | Details |
|---|---|---|
| Search, multi-column sort, filters and saved views | Built | Configuration · Tools |
Row selection, with bulk actions across pages (selectionMode, bulkActions) | Built | Configuration · Selection |
Server-side data (mode="server", totalRows) | Built | Configuration · Server |
A plain, read-only table (plain) | Built | Variant · Plain |
| Pinned columns | Built | Configuration · Pinned |
Columns that fit their content (width: 'fit'), fixed and growing widths | Built | Configuration · Widths |
Search, multi-column sort, filters and saved views
BuiltConfiguration · Tools
Row selection, with bulk actions across pages (
BuiltselectionMode,bulkActions)Configuration · Selection
Server-side data (
Builtmode="server",totalRows)Configuration · Server
A plain, read-only table (
Builtplain)Variant · Plain
Pinned columns
BuiltConfiguration · Pinned
Columns that fit their content (
Builtwidth: 'fit'), fixed and growing widthsConfiguration · Widths
Theming & tokens
Set the tokens below on the table or any ancestor. Its fields, buttons and menus are the core's, so they keep their own tokens. Style each part with classNames: root, toolbar, search, filterButton, actions, columnsButton, bulkBar, bulkCount, bulkActions, chips, chip, clearAll, container, table, header, headerRow, headerCell, headerContent, headerLabel, sortIcon, sortLevel, resizer, resizerLine, body, row, cell, rowLink, selectionCell, selectionCheckbox, actionsCell, actionButton, pagination, pageSize, range, pageButtons, pageButton, pageIcon, compactList, compactRow, compactFigure, loading, skeletonRow, skeletonRows, skeletonCell, progress, empty, error, columnSettings, settingsRow, settingsName, filterDialog, filterFields, filterRange.
| Variable | Default | Paints |
|---|---|---|
--wm-data-table-container-color | var(--md-sys-color-surface) | The table’s surface, and a row at rest. |
--wm-data-table-container-shape | var(--md-sys-shape-corner-medium) | The corners of the scrolling table. |
--wm-data-table-outline-color | var(--md-sys-color-outline-variant) | The edge of the scrolling table. |
--wm-data-table-header-height | 56px | The header row’s height at density 0; each density step takes 4px off. |
--wm-data-table-header-color | var(--md-sys-color-surface-container) | The header row’s surface. |
--wm-data-table-header-text-color | var(--md-sys-color-on-surface-variant) | The column names. |
--wm-data-table-row-height | 52px | A row’s least height at density 0; each density step takes 4px off. |
--wm-data-table-row-text-color | var(--md-sys-color-on-surface) | A cell’s text. |
--wm-data-table-row-hover-color | color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface)) | A hovered row’s surface, opaque so pinned cells cover what scrolls under. |
--wm-data-table-row-pressed-color | color-mix(in srgb, var(--md-sys-color-on-surface) 10%, var(--md-sys-color-surface)) | A pressed row’s surface. |
--wm-data-table-row-selected-color | var(--md-sys-color-secondary-container) | A selected row’s surface. |
--wm-data-table-row-selected-hover-color | color-mix(in srgb, var(--md-sys-color-on-secondary-container) 8%, var(--md-sys-color-secondary-container)) | A selected row’s surface while hovered. |
--wm-data-table-row-selected-text-color | var(--md-sys-color-on-secondary-container) | A selected row’s text. |
--wm-data-table-divider-color | var(--md-sys-color-outline-variant) | The line between rows. |
--wm-data-table-cell-padding | 16px | The space at each side of a cell. |
--wm-data-table-sort-icon-size | 18px | The sort arrow’s size. |
--wm-data-table-sort-icon-color | var(--md-sys-color-on-surface) | The sort arrow of a sorted column. |
--wm-data-table-sort-icon-hover-opacity | 0.6 | The sort arrow of an unsorted column, as its header is hovered. |
--wm-data-table-search-width | 20rem | The search field’s width, once the table is 600px wide or more. |
--wm-data-table-page-size-width | 9rem | The rows-per-page choice’s width. |
--wm-data-table-resizer-width | 2px | The line that resizes a column. |
--wm-data-table-resizer-color | var(--md-sys-color-outline-variant) | The resize line at rest. |
--wm-data-table-resizer-active-color | var(--md-sys-color-primary) | The resize line while hovered or moving. |
--wm-data-table-pin-shadow-color | color-mix(in srgb, var(--md-sys-color-shadow) 25%, transparent) | The shadow a pinned column casts over what scrolls under it. |
--wm-data-table-pin-shadow-size | 4px | The size of that shadow. |
--wm-data-table-bulk-bar-color | var(--md-sys-color-secondary-container) | The bar that replaces the toolbar while rows are selected. |
--wm-data-table-bulk-bar-text-color | var(--md-sys-color-on-secondary-container) | That bar’s text. |
--wm-data-table-bulk-bar-shape | var(--md-sys-shape-corner-medium) | That bar’s corners. |
--wm-data-table-toolbar-min-height | 64px | The least height of the toolbar and bulk bar. |
--wm-data-table-toolbar-gap | 12px | The space between toolbar parts, and between the table’s sections. |
--wm-data-table-state-duration | var(--md-sys-motion-spring-effects-fast-duration) | How long a row’s surface takes to change. |
--wm-data-table-state-easing | var(--md-sys-motion-spring-effects-fast-easing) | The easing of that change. |
--wm-data-table-bulk-bar-padding-inline | 16px | The space at the bulk bar’s sides. |
--wm-data-table-bulk-bar-padding-block | 8px | The space above and below the bulk bar’s content. |
--wm-data-table-chips-gap | 8px | The space between filter chips and between bulk actions. |
--wm-data-table-header-gap | 4px | The space between a header’s label and its sort icon. |
--wm-data-table-resizer-target-width | 16px | The width a pointer can grab to resize a column. |
--wm-data-table-resizer-inset | 12px | The space above and below the resizer’s line. |
--wm-data-table-control-cell-padding | 4px | The space at the sides of a selection or actions cell. |
--wm-data-table-skeleton-gap | 8px | The space between loading rows. |
--wm-data-table-skeleton-height | 32px | A loading row’s height. |
--wm-data-table-state-padding | 32px | The space above and below the empty and error states. |
--wm-data-table-settings-gap | 8px | The space between the parts of a column settings row. |
--wm-data-table-settings-row-padding | 4px | The space above and below a column settings row. |
--wm-data-table-settings-icon-size | 18px | The pinned icon’s size in column settings. |
--wm-data-table-filter-gap | 16px | The space between a filter dialog’s fields. |
--wm-data-table-compact-figure-gap | 12px | The space between a compact row’s figures, in a table with no other text column. |
--wm-data-table-compact-value-weight | var(--md-sys-typescale-body-medium-emphasized-weight) | A compact row’s figure: the body role’s emphasized weight, beside its column’s name. |