Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Budget records
  • Recommendations
  • Usage boundaries
  • API reference

Data

Data Table

A TanStack Table integration for sorting, paging, and optional row virtualization.

idle

Usage

import { DataTable } from "@mizen-labs/ui";

Examples

Budget records

Recommendations

GuidancePractice
Do

Keep search and filters near the records they affect.

Do

State whether bulk selection covers a page or all filtered matches.

Do

Keep data, columns, and feature configuration stable between renders.

Do

Mark the identifying column as a row header so it freezes while the grid scrolls sideways.

Do

Enable column resizing for wide working tables so people can fit columns to their data.

Usage boundaries

GuidanceBoundary
Scope

Use Table for static records that do not need managed state.

Scope

Keep remote queries and destructive mutations in the application.

Scope

Sorting needs a configured TanStack sorting feature and row model.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
DataTable.tableTanStack Table instanceRequiredThe caller owns columns, records, sorting, filtering, and pagination state.
DataTable.captionstringRequiredNames the table. The grid itself is the single tab stop; its scroll region is not.
Keyboard gridARIA gridAlways onArrows move between cells; Home and End reach row ends, Ctrl+Home and Ctrl+End the corners, Page Up and Page Down jump 10 rows. A cell with one control focuses that control.
Column resizingcolumnResizingFeatureOffAdd TanStack's columnResizingFeature (columnResizeMode: "onChange") to drag column edges or press Shift+Left/Right on a header; double-click a handle to reset.
DataTable.virtualizedbooleanfalseRenders a measured window of rows. Use paging when every row must remain searchable or available to assistive tools.
ColumnMeta.mizen{ numeric?: boolean; rowHeader?: boolean; sticky?: boolean }—Keeps column presentation explicit while preserving the TanStack model. Row-header columns freeze by default; set sticky: false to opt out.
DataTablePagination.tableTanStack Table instanceRequiredUses native buttons to navigate the caller-owned page model.
PreviousAvatar GroupNextList
Projects sorted by project or owner.
DocumentationAlex Rivera
Design systemMaya Chen
Reference appSam Jordan

Budget records

Search and compare 10,000 budget records.

Department

10,000 matching records

0 selected

Budget records in USD.
Cloud hostingBUD-00001Design$12,000$9,000$3,000
ContractorsBUD-00002Design$19,919$12,571$7,348
EquipmentBUD-00003Design$27,838$16,142$11,696
MarketingBUD-00004Engineering$35,757$19,713$16,044
PayrollBUD-00005Engineering$43,676$23,284$20,392
TravelBUD-00006Engineering$51,595$26,855$24,740
Cloud hostingBUD-00007Finance$59,514$30,426$29,088
ContractorsBUD-00008Finance$67,433$33,997$33,436
EquipmentBUD-00009Finance$75,352$37,568$37,784
MarketingBUD-00010Operations$83,271$41,139$42,132
PayrollBUD-00011Operations$91,190$44,710$46,480
TravelBUD-00012Operations$99,109$48,281$50,828
Cloud hostingBUD-00013Research$107,028$51,852$55,176
ContractorsBUD-00014Research$114,947$55,423$59,524
EquipmentBUD-00015Research$122,866$58,994$63,872
MarketingBUD-00016Sales$130,785$62,565$68,220
PayrollBUD-00017Sales$138,704$66,136$72,568
TravelBUD-00018Sales$146,623$69,707$76,916
Cloud hostingBUD-00019Design$16,542$73,278-$56,736
ContractorsBUD-00020Design$24,461$76,849-$52,388
EquipmentBUD-00021Design$32,380$80,420-$48,040
MarketingBUD-00022Engineering$40,299$83,991-$43,692
PayrollBUD-00023Engineering$48,218$87,562-$39,344
TravelBUD-00024Engineering$56,137$91,133-$34,996
Cloud hostingBUD-00025Finance$64,056$94,704-$30,648

1–25 of 10000 rows

Page 1 of 400