Data Grid
The Data Grid component extends the Table component with keyboard navigation and interactive features for managing complex tabular data.Installation
Usage
Props
DataGrid
Accessible label for screen readers.
Overrides the default element name to apply unique styles with the Customization Provider.
If creating a treegrid, set this to “treegrid” to override the default role of “grid”.
Sets zebra striping on table rows.
Sets the
table-layout style of the Data Grid.Sets the border style of the Data Grid.
Sets the data grid to scroll horizontally on small screens.
Sets the data grid cells to not line wrap.
Features
- Keyboard Navigation: Navigate cells using arrow keys
- Actionable Mode: Press Enter to interact with cell contents, Escape to exit
- Focus Management: Maintains focus state when tabbing in and out of the grid
- Accessibility: Full ARIA grid pattern support
Keyboard Shortcuts
- Arrow Keys: Navigate between cells
- Enter: Enter actionable mode to interact with cell contents
- Escape: Exit actionable mode and return to grid navigation
- Tab: Tab through interactive elements within a cell (when in actionable mode)