@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
11 lines • 526 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import { useGridAriaAttributes as useGridAriaAttributesCommunity } from '@mui/x-data-grid/internals';
import { useGridRootProps } from "./useGridRootProps.js";
export const useGridAriaAttributesPro = () => {
const ariaAttributesCommunity = useGridAriaAttributesCommunity();
const rootProps = useGridRootProps();
const ariaAttributesPro = rootProps.treeData ? {
role: 'treegrid'
} : {};
return _extends({}, ariaAttributesCommunity, ariaAttributesPro);
};