@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
12 lines • 519 B
TypeScript
import * as React from 'react';
import { GridTreeNode } from "../gridRows.js";
/**
* Get the ARIA attributes for a row
* @param {GridTreeNode} rowNode The row node
* @param {number} index The position index of the row
* @returns {React.HTMLAttributes<HTMLElement>} The ARIA attributes
*/
export type GetRowAriaAttributesFn = (rowNode: GridTreeNode, index: number) => React.HTMLAttributes<HTMLElement>;
export interface GridRowAriaAttributesInternalHook {
useGridRowAriaAttributes: () => GetRowAriaAttributesFn;
}